• 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: .DS_Store files, dirContentsAtPath? (newb)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .DS_Store files, dirContentsAtPath? (newb)


  • Subject: Re: .DS_Store files, dirContentsAtPath? (newb)
  • From: Matt Long <email@hidden>
  • Date: Tue, 23 Dec 2008 16:35:18 -0700

Matt Gemmell is the guy to read on this: http://whathaveyoutried.com/

The shortcut function you are asking for doesn't exist. So now what? What have you tried? People are much more likely to provide answers to questions that show what you are currently doing. You're taking the risk that people might think your code stinks if you provide it, but you've already given the *newb* disclaimer, so there's really no risk at all. People will cut you some slack. Show us what you've done so far.

Best regards,

-Matt



On Dec 23, 2008, at 1:31 PM, Chris Paveglio wrote:

I need to use directoryContentsAtPath to do a simple count of files in a directory. But sometimes I get an incorrect number (vs the Finder's display), because there is a .DS_Store file in the folder. Is there a way to ignore invisible files? Is there something like directoryContentsAtPath:ignoringInvisibleFiles or some other filter?

(newb, so please explain any suggestions fully, thx!)

Thanks,
Chris




_______________________________________________

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


References: 
 >.DS_Store files, dirContentsAtPath? (newb) (From: Chris Paveglio <email@hidden>)

  • Prev by Date: Re: NSString stringByTrimmingCharactersInSet method doesnt work.
  • Next by Date: Crash as NSPersistentDocument creates its persistence stack
  • Previous by thread: .DS_Store files, dirContentsAtPath? (newb)
  • Next by thread: saving filename suggestion in NSSavePanel
  • Index(es):
    • Date
    • Thread