Re: A mystery with NSFileManager
Re: A mystery with NSFileManager
- Subject: Re: A mystery with NSFileManager
- From: Hsu <email@hidden>
- Date: Sat, 23 Feb 2002 15:49:17 -0800
/tmp is a symbolic link to /private/tmp - if I substitute "/private/tmp"
below, I get the correct result. However, this seems to contradict the
documentation, which implies that this particular method should traverse
symbolic links.
So, yeah, it looks like a bug.
Karl
On Saturday, February 23, 2002, at 03:39 PM, email@hidden wrote:
The following lines:
NSFileManager *fm = [NSFileManager defaultManager];
BOOL isDirectory;
NSLog(@"%@", [fm fileExistsAtPath:@"/tmp"
isDirectory:&isDirectory] ? @"YES" : @"NO");
NSLog(@"%@", isDirectory ? @"YES" : @"NO");
produce the output:
YES
NO
--
Neurosis is red
Melancholia is blue
I'm schizophrenic
What are you?
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.