emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: function for cleaning org-attach directories
Date: Thu, 16 Jul 2015 11:38:10 +0200	[thread overview]
Message-ID: <m2wpy0mohp.fsf@charm-wifi.irisa.fr> (raw)
In-Reply-To: <877fq0o4xx.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 16 Jul 2015 16:57:30 +0800")

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Hi Eric,

On 2015-07-16 10:57, Eric Abrahamsen <eric@ericabrahamsen.net> 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"?

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated July 14, 2015, Mauna Loa Obs.):
401.73 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

  reply	other threads:[~2015-07-16  9:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16  8:57 function for cleaning org-attach directories Eric Abrahamsen
2015-07-16  9:38 ` Alan Schmitt [this message]
2015-07-16 12:43   ` Eric Abrahamsen
2015-07-17  5:19     ` Eric Abrahamsen
2015-07-17 15:01       ` Alan Schmitt
2015-07-18  3:11         ` Eric Abrahamsen
2015-07-20 15:04           ` Alan Schmitt
2015-08-01  9:23             ` [PATCH] " Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wpy0mohp.fsf@charm-wifi.irisa.fr \
    --to=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).