how to move files to trash?
how to move files to trash?
- Subject: how to move files to trash?
- From: Sascha Kujawa <email@hidden>
- Date: Wed, 29 Oct 2003 09:09:17 +0100
I am wondering how to move files to trash with Cocoa?
[fileManager removeFileAtPath:tempPath handler:nil]
would permanently delete a file without using the trash.
So I tried to utilize "movePath", but it does not work this way:
[fileManager
movePath:tempPath
toPath:[@"~/.Trash/" stringByExpandingTildeInPath]
handler:nil
];
Any ideas?
With greetings from Germany
Sascha Kujawa
Software QA Engineer
and Betatest Coordinator
Emagic Soft- & Hardware GmbH
phone: +49 (0)4101 495-324
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.