• 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
NSFileManager Wildcard Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileManager Wildcard Characters


  • Subject: NSFileManager Wildcard Characters
  • From: email@hidden
  • Date: Tue, 28 Dec 2010 12:02:30 -0700

I don't see in the docs so thought I'd ask ...


NSFileManager* defaultManager = [NSFileManager defaultManager]; [defaultManager removeItemAtPath:@"._*" error:&error];

I can hardcode for known "." files such as .Trashes

I don't have any files with "._Name" so I cannot test but need to remove all hidden files from removable media, primarily USB sticks.


-koko



































.

_______________________________________________

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


  • Follow-Ups:
    • Re: NSFileManager Wildcard Characters
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: XML to Plist
  • Next by Date: Re: Runtime Error: Incompatable applications
  • Previous by thread: Re: XML to Plist
  • Next by thread: Re: NSFileManager Wildcard Characters
  • Index(es):
    • Date
    • Thread