recursive dir searching
recursive dir searching
- Subject: recursive dir searching
- From: "Wesley Smith" <email@hidden>
- Date: Tue, 8 Apr 2008 17:20:25 -0600
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 (email@hidden)
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:
This email sent to email@hidden