emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] function for cleaning org-attach directories


From: Eric Abrahamsen
Subject: Re: [O] function for cleaning org-attach directories
Date: Thu, 16 Jul 2015 20:43:09 +0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Alan Schmitt <address@hidden> writes:

> Hi Eric,
>
> On 2015-07-16 10:57, Eric Abrahamsen <address@hidden> writes:
>
>> I use org-attach a lot, and if you're not careful you can get a "data/"
>> directory of many gigabytes. Not a problem, until you want to rsync it
>> and it takes all day...
>>
>> I wrote this to clean my attach directories. I'm not sure how portable
>> it is (and I'm really not pleased with the (concat attach-dir "/" d "/"
>> d+)), but I'm posting it to see if it's useful to anyone.
>>
>> Comments/improvements welcome! If the final product is desirable, I can
>> work it up as a patch.
>
> This would be most useful indeed. One quick question: why do you use
> "rm" instead of "delete-file"?

Because I was copy-pasting from org-attach! The real question is: why
didn't I use `delete-directory' :)

I'll do another version!

E




reply via email to

[Prev in Thread] Current Thread [Next in Thread]