• 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: Paul M <email@hidden>
  • Date: Sun, 15 Aug 2010 11:39:08 +1200

I think the concept of a non-recursive delete comes from the unix rm command - if the recursive flag is not specified, then it will delete the dir only if it's empty, otherwise it deletes nothing.


paulm


On 15/08/2010, at 11:31 AM, Kyle Sluder wrote:

On Sat, Aug 14, 2010 at 11:46 AM, Michael Ash <email@hidden> wrote:
Er, as far as I can tell from a quick look at the docs, every
NSFileManager remove... method is documented to be recursive and there
isn't any way to turn that *off*....

Pardon me if I'm being dense, but what would a "non-recursive delete" even mean? If you delete the directory, it's gone, as its entire subtree.

--Kyle Sluder
_______________________________________________

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


_______________________________________________

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: 
 >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: Michael Ash <email@hidden>)
 >Re: Recursive file remove (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Recursive file remove
  • 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