• 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: "ronald b. kopelman" <email@hidden>
  • Date: Sun, 15 Aug 2010 18:07:34 -0400

>> 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.

	To flog a dead horse further, all of this can be done in Obj. C without Unix. I  just finished coding a small utility to remove .dstore files recursively without a single line of Unix. Only 766 KB including help, nice graphics & drop capability. Seems to work fast too.

ronald b. kopelman_______________________________________________

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

  • Prev by Date: Re: who stole my UIView?
  • Next by Date: Re: isTemporaryID unrecognized selector?
  • Previous by thread: Re: Recursive file remove
  • Next by thread: OCTest running the same test against multiple classes
  • Index(es):
    • Date
    • Thread