Re: Indexing/Directory Enumeration
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