Re: Deleting a folder

2008-03-12 Thread Jean-Daniel Dupas
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

re: Deleting a folder

2008-03-12 Thread Mr. Gecko
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

Re: Deleting a folder

2008-03-12 Thread John Stiles
This is pretty dangerous if you get it wrong (spaces in the path? quotes? weird control characters?). Also, it makes it extremely difficult to provide feedback if errors occur. I wouldn't take that route. Herr Thomas Bartelmess wrote: unix command rm -r thomas Am 12.03.2008 um 21:42 schrieb M

Re: Deleting a folder

2008-03-12 Thread Herr Thomas Bartelmess
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? _

Re: Deleting a folder

2008-03-12 Thread Randall Meadows
On Mar 12, 2008, at 2:42 PM, Mr.Gecko wrote: 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? NSFileManager -removeFileAtPath:handler: _

Deleting a folder

2008-03-12 Thread 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 (Cocoa-dev@lists.apple.