Re: stringByResolvingSymlinksInPath doesn't?
Re: stringByResolvingSymlinksInPath doesn't?
- Subject: Re: stringByResolvingSymlinksInPath doesn't?
- From: glenn andreas <email@hidden>
- Date: Thu, 18 Aug 2005 19:16:00 -0500
On Aug 18, 2005, at 7:06 PM, Jonathan del Strother wrote:
I've symlinked my iTunes directory to elsewhere:
Sakaki-San:~/Music jon$ ls
total 6
lrwxr-xr-x 1 jon jon 6 Aug 19 00:59 iTunes@ -> iTunes
I'm trying to use stringByResolvingSymlinksInPath to get to the
real path. It's just returning the receiver.
It's clearly doing something - if I resolve symlinks on @"~/Music/
iTunes", I get @"/Users/jon/Music/iTunes" back, but it's totally
ignoring the symlink.
What am I missing?
Cheers,
Jon
Your initial premise that you symlinked your iTunes directory is faulty.
Symlinks basically just store a path fragment to replace whatever -
it's not like an alias (which follows stuff around) - it's just a
string, which is shown in your "ls".
So you make a symlink which is the 6 characters 'i' 'T' 'u' 'n' 'e' 's'
And when you resolve it, it replaces iTunes (the symlink) with the
string "iTunes". Net result is that it everything is working as it
is suppose to.
Not sure how you made the symlink, but probably want to re-read man
ln to get the syntax correct...
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden