hi,
I've been trying to use
NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager]
enumeratorAtPath:dir];

to recursively search for a file in a given directory but am coming
across some minor details that I'm not sure what the best way to deal
with is.  There's a method  skipDescendents, which is described as
"Causes the receiver to skip recursion into the most recently obtained
subdirectory."  I'm finding this not to be what I thought it was.  For
example, for the layout:


Docs
   /Images
           /.svn
                 [[ all of the svn junk ]]
           1.jpg
            2.jpg

If I give @"docs" to the enumerator and let's say it is on images/.svn
and I call [dirEnum skipDescendents].  What actually happens is it
skips Images instead of only skipping .svn.  Is this intended
behavior??  How else can I ignore what are normally hidden subdirs.

thanks,
wes
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to