• 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: Recursive file remove
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recursive file remove


  • Subject: Re: Recursive file remove
  • From: Charles Srstka <email@hidden>
  • Date: Sat, 14 Aug 2010 16:33:47 -0500

On Aug 14, 2010, at 4:01 PM, lbland wrote:

>
> On Aug 14, 2010, at 2:28 PM, Tom Jones wrote:
>
>> Thanks, this helps a lot. What I'm looking to "remove" is my temp directory where I'm downloading files un-compressing them etc. Just good house keeping.
>>
>> I must admit having not been doing this long, and after Kyle's remark on "collected consulting fees" I'm surprised that there isn't a task as part of NSFileManager to remove items recursively like "removeItemAtPath:recursive:error:" for example. I mean Mac OS X is over 10 years old. :-)
>
> hi-
>
> If you are not too picky then you can use system("rm -rf /tmp/mystuff”);

Why all the crazy solutions when you can just use NSFileManager to delete the files (and it will be recursive)?

KISS.

Charles_______________________________________________

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: Recursive file remove
      • From: Tom Jones <email@hidden>
References: 
 >Recursive file remove (From: Tom Jones <email@hidden>)
 >Re: Recursive file remove (From: Don Quixote de la Mancha <email@hidden>)
 >Re: Recursive file remove (From: Jerry Krinock <email@hidden>)
 >Re: Recursive file remove (From: Tom Jones <email@hidden>)
 >Re: Recursive file remove (From: lbland <email@hidden>)

  • Prev by Date: Re: isTemporaryID unrecognized selector?
  • Next by Date: Re: Recursive file remove
  • Previous by thread: Re: Recursive file remove
  • Next by thread: Re: Recursive file remove
  • Index(es):
    • Date
    • Thread