• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to empty the Trash programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to empty the Trash programmatically? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Re: How to empty the Trash programmatically?
  • Next by Date: Re: program termination after releasing self defined NSXMLParser class
  • Previous by thread: Re: How to empty the Trash programmatically?
  • Next by thread: Re: How to empty the Trash programmatically?
  • Index(es):
    • Date
    • Thread