• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A mystery with NSFileManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >A mystery with NSFileManager (From: email@hidden)

  • Prev by Date: Re: A mystery with NSFileManager
  • Next by Date: Simple Save Preference Tutorial
  • Previous by thread: Re: A mystery with NSFileManager
  • Next by thread: Re: A mystery with NSFileManager
  • Index(es):
    • Date
    • Thread