Re: How to empty the Trash programmatically?
Re: How to empty the Trash programmatically?
- Subject: Re: How to empty the Trash programmatically?
- From: Charles Srstka <email@hidden>
- Date: Fri, 16 Apr 2010 01:21:08 -0500
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 (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