• 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: 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.

References: 
 >Re: A mystery with NSFileManager (From: Finlay Dobbie <email@hidden>)

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