From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: function for cleaning org-attach directories Date: Thu, 16 Jul 2015 11:38:10 +0200 Message-ID: References: <877fq0o4xx.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFfbm-0006MH-Cl for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 05:37:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFfbj-0005PI-2a for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 05:37:38 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:62811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFfbi-0005O6-Rz for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 05:37:35 -0400 In-Reply-To: <877fq0o4xx.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 16 Jul 2015 16:57:30 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Eric, On 2015-07-16 10:57, Eric Abrahamsen 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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Last week athmospheric CO=E2=82=82 average (Updated July 14, 2015, Mauna Lo= a Obs.): 401.73 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJVp3uCAAoJEAQNCjtO0uXH5DQIALnFp2qfBYnx5uaSbAWgdLw5 O9U1XiGODkHsXqmuq+GlBHno1wIS0PNjRG6JXSLDxKUpxuhHSZ1chCdmrrmWAZhF bnhQBXrYga8EEFho2gYqjIZViIvmkS1skh5TEjS5g+r4bRtLq8UIvlQNq2iJTLRB 9ry9lWjhGOvc8b8dPevtbXeM9AnevOPI1kTs0J7IYyFQb00ANOQ04iezuckUmAMS 9tdD5fBfoNvWRYXKe15qMmYoEKloGHiSbIGqBVgjBY94Bfhr2vfyEivite6KpJV8 xCxxBZaOrlVCgGtzuPfR7jkFukkSu99hkSNzCyg9PvI7eHrL+xmQg3FotbplJGY= =W/Ks -----END PGP SIGNATURE----- --=-=-=--