Re: Symbolic Links in Snow Leopard
Re: Symbolic Links in Snow Leopard
- Subject: Re: Symbolic Links in Snow Leopard
- From: Jeff Johnson <email@hidden>
- Date: Sun, 6 Sep 2009 16:43:52 -0500
On Sep 6, 2009, at 4:26 PM, Jens Alfke wrote:
On Sep 6, 2009, at 1:26 PM, Greg Guerin wrote:
Try using a pathname that contains only Latin alphabet characters
(for reference, the original chars of the volume-name are Thai:
\u0e40\u0e21\u0e48\u0e19). If necessary, create and mount a disk-
image in order to get only Latin chars.
I don't think it has anything to do with the characters in the
filename:
NSLog(@"path = %@", [@"/etc" stringByStandardizingPath]);
results in
path = /etc
when the result ought to be "/private/etc".
The same thing happens with a custom symlink I created, like "/
Code", which links to "/Volumes/snoog/Code":
NSLog(@"path = %@", [@"/Code/Murky" stringByStandardizingPath]);
results in
path = /Code/Murky
Not sure about the second example, but the first example has been a
problem for a long time:
rdar://problem/6121719 -[NSString stringByResolvingSymlinksInPath] is
contradictory and untrustworthy
http://lapcatsoftware.com/rdar/6121719/index.html
(Note that stringByStandardizingPath is documented as calling
stringByResolvingSymlinksInPath.)
-Jeff
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden