• 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: Michael Ash <email@hidden>
  • Date: Sun, 15 Aug 2010 12:39:13 -0400

On Sun, Aug 15, 2010 at 12:05 PM, Ken Thomases <email@hidden> wrote:
> On Aug 14, 2010, at 11:36 PM, Michael Ash wrote:
>
>> First is the more obvious one, where you have the semantics of doing
>> an 'rm' on a directory without passing the -r flag. If the directory
>> is empty, it's deleted. If it's not, the command fails.
>
> Not to flog a dead horse, but 'rm' doesn't do that.  Without '-r', rm always fails on a directory, even if it's empty.  Only 'rmdir' will delete a directory if empty and fail otherwise.

That's what I get for not checking before I post. Thanks for the info!

Mike
_______________________________________________

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

  • Prev by Date: Re: Recursive file remove
  • Next by Date: Re: who stole my UIView?
  • Previous by thread: Re: Recursive file remove
  • Next by thread: Re: Recursive file remove
  • Index(es):
    • Date
    • Thread