• 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
NSFileManager and directories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileManager and directories


  • Subject: NSFileManager and directories
  • From: Francisco Tolmasky <email@hidden>
  • Date: Thu, 04 Sep 2003 00:25:46 -0700

Is saying something like
NSArray *contents;
if(contents= [[NSFileManager defaultManager] directoryContentsAtPath: aPath])
//do directory stuff
else
//do file stuff

a safe way to tell if the object at "aPath" is a directory or not?

Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSFileManager and directories
      • From: Dustin Voss <email@hidden>
    • Re: NSFileManager and directories
      • From: Shaun Wexler <email@hidden>
    • Re: NSFileManager and directories
      • From: Neil Earnshaw <email@hidden>
    • Re: NSFileManager and directories
      • From: Tito Ciuro <email@hidden>
  • Prev by Date: How to get NSFont instance from classic Font ID?
  • Next by Date: Re: NSFileManager and directories
  • Previous by thread: Re: How to get NSFont instance from classic Font ID?
  • Next by thread: Re: NSFileManager and directories
  • Index(es):
    • Date
    • Thread