From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8BpOBh5J5mDW3wAAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 02:38:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IOCyAR5J5mC9SAAAbx9fmQ (envelope-from ) for ; Thu, 08 Jul 2021 00:38:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6A58C1FB1F for ; Thu, 8 Jul 2021 02:38:53 +0200 (CEST) Received: from localhost ([::1]:48978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1I44-0006Px-DH for larch@yhetil.org; Wed, 07 Jul 2021 20:38:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1I3a-0006Pk-PC for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 20:38:22 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:36367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1I3Z-0005Ak-8z for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 20:38:22 -0400 Received: by mail-pf1-x42c.google.com with SMTP id 21so3891237pfp.3 for ; Wed, 07 Jul 2021 17:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=eMPDBkcQkorG+tqgx7Hp4XotrFtksZ5Z3qlhfrbSrqQ=; b=aXnQ7QA65PT/Gwhl0n9FpzNjYGImkOrdAnWDlWbixu29CKM1uxgQKne2l6yuktTIuf tC3syeQFije6922KKGAUCvPLihhyyJyuHyYdCZfKQBe/EuPTa3mjJO0npf+PlFXS+vVG BhOD2787jgRdmsJAz5/AnZ4SJIYfc8uP+fYJQ+XCtEzuRCQUj3D+t0nGMGYCXEcB8Css cim9h/+1Qv5dX38BGGriCKZZ42XVeULiUJV+eF7rgg5JScmIlnew26c86DI5Zk6029t1 5xmJ9H5jebCqUOU7jISDJp4Fvj3DGGu8GbGasDWmrA40QQiet3OFxAng7acBquuzGwU4 FPPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=eMPDBkcQkorG+tqgx7Hp4XotrFtksZ5Z3qlhfrbSrqQ=; b=U5nZaPTvREutUPBbiCt2f+3orfr4GMto9utPZs3M/QY3BNQcfWqCND2kype8o22jjk iBqMgfbSQBR9ffK0US2za9DhxZGE61LvJ/xuqcSO8eqzw6pBV5xJJ1ymjIQlbvOuVP6U lKUrouiyu4YB0DU679TE5hlT5jJf8YodsqFiVHt2+tNfbaPav2Id+nxO3p5jL5LQLP1C d17rvQRnurY6ltbPpHnLlvSGAh6GnbKMYE07bsXz+8Lj2YJ1qgEFMCwc5sNgZOA0JBzd yRteJQsMVQ2Q1YiqrtWiOMv7OKpy5mECEAr7GlT5UheCIWL2l6s/p5GMblR3oFC94QBq Rsdw== X-Gm-Message-State: AOAM533B/WqIGDo3+6NyqSregP86x5i3l2hRgrXUgqkw5R9kRAC3/hW8 2mYrw6zayxDR29LJ2QKLPGj4EOr97m4= X-Google-Smtp-Source: ABdhPJwY/mmMxztkXrFveT+8nLuZbIcPyHzQS0h0svycjwUeJtC9aZFLhcpL5fZnY+9TJSousiLk9w== X-Received: by 2002:a63:3243:: with SMTP id y64mr11855643pgy.244.1625704699314; Wed, 07 Jul 2021 17:38:19 -0700 (PDT) Received: from tim-desktop (106-69-111-137.dyn.iinet.net.au. [106.69.111.137]) by smtp.gmail.com with ESMTPSA id r14sm457866pgm.28.2021.07.07.17.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 17:38:18 -0700 (PDT) References: <87lf6h7ueq.fsf@gmail.com> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [WDYT] org-attach-sync better remove an empty attachment directory? Date: Thu, 08 Jul 2021 10:34:43 +1000 In-reply-to: <87lf6h7ueq.fsf@gmail.com> Message-ID: <87o8bdljwn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625704733; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eMPDBkcQkorG+tqgx7Hp4XotrFtksZ5Z3qlhfrbSrqQ=; b=Y3BLgk2ej0X+22gwIFmRiwywAGdnZnzDwptTLvm3pWwGRBcyRHbQ4Zdc9hQl0rOZ0R+owW 3UPmqwZKdWPDPnNTMMM/V1zIIsGyN5OCPeo83Gijo8l78NKzWlu1jm/LlbclprlAhDUMgB 3q1BqrbMwLj4XYYwYVXbWe5K9ETqimNi484zja/Vrp8ZI1Kp0o3pUAnhWfeANChXNy71GF JxcnuGiEZpZkwCHFDjbsmrplu8utEZ8jNJJhe5e4LORAWkFnQsMjC3GGGuAlhx6exva4Vf U9oyYXzkkXRcYrkQlleHvIkhaTOrZ0ssjYorOu+0WUTVpbHBUqqndEnd5yh1Qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625704733; a=rsa-sha256; cv=none; b=ssqwDzn9itS4m3UOLPvNod/jTy40K3HRYfFP181bTKm7mytuSULSB1Ou73dO3R7HTjdTYH AVjn/6VPyVNdWY9ed1XCY3dFxywFYoc+8TAeqrEv1fvJvaNbnIwsgIdGOG9NGwPfEA8Moc L//Rily4ESelYH6nNvsXHhSbdidfDmfPAhnO+zEPzeNa6pL+50fi55YYt2KyRl9/Tz6L/d TFNwrDatQt5iuN8jRdhrQ2Cn/4o4tBwG02+4SYBTxhds66fSdFo19vuQsmRlD4D6365HmJ u1R8eja3MC2CezdpbHq3lM2ImAuoHOXJ6yEK/tY/MJZT1qx4QiJg+hg15fiW6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=aXnQ7QA6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=aXnQ7QA6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6A58C1FB1F X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: e/WHHi5M7nMc Marco Wahl writes: > Hi, > > org-attach-sync can be used to "Synchronize the current outline node > with its attachments." Which is great AFAICT. > > What do you think about letting org-attach-sync remove the attachment > directory if it's empty? > > Rationale: Nobody needs an empty attachment directory. > This seems pretty reasonable to me provided it only removes an attachments directly which was created by org-attach-sync. If the directory existed or was created by something external, then removing it probably should not be done. Likely this is something which should be controllable via a custom setting? -- Tim Cross