NSFilemanager and secure removal

Is there an officially supported way to safely delete files on Mac OS X 10.5 +?

If not, about which I can move all the files (using NSFilemanager) to a shared folder and use srm: from the shell script. Will it delete all the file traces or will the file still be restored due to the move operation?

in advance for any help / suggestions.

+3
source share
3 answers

you can refer to this book where it doses safe file deletion at objective-c http://shop.oreilly.com/product/0636920023234.do

-2
source

AFAIK, move is not going to copy bytes, just change the pointers in the file system.

+1

:

NSError *err;
NSFileManager *fileManager = [[NSFileManager alloc] init];
[fileManager removeItemAtPath:path error:&err];

- NSString, , .

0

All Articles