• 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: Indexing/Directory Enumeration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indexing/Directory Enumeration


  • Subject: Re: Indexing/Directory Enumeration
  • From: glenn andreas <email@hidden>
  • Date: Thu, 24 Feb 2005 12:17:59 -0600


On Feb 24, 2005, at 11:02 AM, Matt Neuburg wrote:

On Wed, 23 Feb 2005 16:16:57 -0600, Justin Spahr-Summers
<email@hidden> said:
He has multiple recursive directories, in which case a simple
NSDirectoryEnumerator wouldn't work, as it would only give the
contents of the directory you specify.

"An enumeration is recursive, including the files of all subdirectories." In
other words, an NSDirectoryEnumerator does recurse, and indeed, one of the
problems with it is getting it *not* to recurse (in case you wanted to fill
your data structure recursively). m.



What about:


- (void)skipDescendents
Causes the receiver to skip recursion into the most recently obtained subdirectory.



Granted, you need to call it for all items you don't want to recurse into, but in this case it would be "all of them" so always calling it is easy enough.



Glenn Andreas                      email@hidden  <http://www.gandreas.com/> oh my! Mad, Bad, and Dangerous to Know

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Indexing/Directory Enumeration
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: Indexing/Directory Enumeration (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Binding name must be same as ivar name?
  • Next by Date: Re: Accessing System dictionary?
  • Previous by thread: Re: Indexing/Directory Enumeration
  • Next by thread: Re: Indexing/Directory Enumeration
  • Index(es):
    • Date
    • Thread