Re: A mystery with NSFileManager
Re: A mystery with NSFileManager
- Subject: Re: A mystery with NSFileManager
- From: email@hidden
- Date: Sat, 23 Feb 2002 15:50:18 -0800
In other words, the -fileExistsAtPath:isDirectory: call returns
success, but the isDirectory flag is set to NO -- it claims /tmp is
not a directory. Now, there's nothing wrong with /tmp on my machine;
it's sitting right there, it conatins some spam files I've made over
the past days, I have rwx access to it.
lrwxrwxr-t 1 root wheel 11 Feb 23 17:09 tmp ->
private/tmp
It's a symbolic link.
Oh. Um... hmm. Well, I don't really understand this (why the
trailing slash matters, mostly), but... thanks to all who replied.
Sounds like I want to use -stringByResolvingSymlinksInPath before I
start trying to use the path. Thanks for the help!
Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.