• 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: Mon, 25 Feb 2002 11:26:58 -0800

The last symlink is traversed, UNLESS the sticky bit is also indicated
in the stat info. (Why? read on.)

Thanks, Chris. Very illuminating. I've logged a bug (2867893), and I've worked around the problem by basically saying "if path exists but is not a directory, try path plus a trailing slash, and if that exists and *is* a directory, use that path instead". :->

Fascinating....

Yeah; it's always amazing to me how much complexity is under the hood. All us Cocoa programmers are merrily hacking away with the AppKit and Foundation APIs without a care in the world, until something like this comes up that exposes some small part of the true underpinnings of it all... :->

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.

  • Prev by Date: Carbon Date to NSDate - How?
  • Next by Date: Re: HTMLDisplay.framework == HTMLRendering?
  • Previous by thread: Re: A mystery with NSFileManager
  • Next by thread: sharing defaults between screensaver bundle and application
  • Index(es):
    • Date
    • Thread