• 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
recursive dir searching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: [OFF] unicode characters
  • Next by Date: Re: CoreAnimation in a modal window
  • Previous by thread: Re: CoreAnimation in a modal window
  • Next by thread: Re: recursive dir searching
  • Index(es):
    • Date
    • Thread