• 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: paths for contents of a directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: paths for contents of a directory


  • Subject: Re: paths for contents of a directory
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 15 May 2007 02:17:22 -0400

Given that you passed in the directory path when you used the NSFileManager, you can simply add each file path to the directoryPath using
the NSString methods for manipulating path strings


specifically.. stringByAppendingPathComponent:

I'm pretty sure there is example code that can be found by searching for directoryContentsAtPath: in Xcode..


On May 15, 2007, at 1:06 AM, Roland Silver wrote:

Yes, I did try enumeratorAtPath, with the same result: it produces file names, not complete paths.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: paths for contents of a directory (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: Unique items in Core Data models
  • Next by Date: [Solved]RE: The released object is not releasing memory
  • Previous by thread: Re: paths for contents of a directory
  • Next by thread: NSDictionary valueForKey: and @ character at start of NSString
  • Index(es):
    • Date
    • Thread