• 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: Deleting a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting a folder


  • Subject: Re: Deleting a folder
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 12 Mar 2008 23:24:00 +0100


Le 12 mars 08 à 23:12, Mr. Gecko a écrit :
I was going to do that but it is not internal I used NSFileManager - removeFileAtPath:handler: instead
[[NSFileManager defaultManager] removeFileAtPath:@"/folder/" handler:nil];
On Mar 12, 2008, at 3:45 PM, Herr Thomas Bartelmess wrote:
unix command rm -r

thomas
Am 12.03.2008 um 21:42 schrieb Mr.Gecko:

Hello I have been trying to find a way to delete a folder so when some one chooses replace in the save panel it would delete the folder before it recreates it. What is the easiest way of doing that?
_______________________________________________


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

You can also use -[NSWorkspace performFileOperation:source:destination:files:tag:].
Use NSWorkspaceDestroyOperation to delete it, or NSWorkspaceRecycleOperation to move it to trash.



_______________________________________________

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: 
 >re: Deleting a folder (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: BitMap data format and autorelease
  • Next by Date: Re: Core Animation geometry, layer hosting, and resolution independence
  • Previous by thread: re: Deleting a folder
  • Next by thread: How does -drawPageBorderWithSize: place pageHeader?
  • Index(es):
    • Date
    • Thread