[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Auto-emptying of trash.



On 8/06/2014 6:03 PM, Sharon Kimble wrote:
> Revisiting a question that I asked in March last year about how to
> auto-empty a trash bin.
> 
> This has worked very well until today, when on one of my drives it
> also deleted the trash bin as well, so my follow-on script to give
> me the size of my trash bin failed as there wasn’t a trash bin to
> evaluate!

I wonder if it is as simple as touching the .Trash folder itself so that
it cannot be considered old enough to remove?

Or you could do a find condition like this:
   -a ! -name .Trash-1000


Cheers
A.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: