On Apr 16, 2010, at 1:05 AM, Oleg Krupnov wrote: > Hi, > > Is there a way to programmatically empty the Trash can? > > I could delete all files from /Users/<account>/.Trash folder, but I am > not sure if it's a legitimate way. Also it will not include trashed > files from other volumes, stored in /.Trashes/<account id>. The latter > are generally not accessible even to list them without root > permissions, so there is no easy way to empty that part of the Trash. > > Another related question would be how to measure the total size of all > files in the Trash (other than scanning), including the files on other > volumes. > > Thanks!
Why exactly do you want to do that? Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com