From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eH/wCJIL5mDDQQAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 22:16:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IFKOBJIL5mA+GwAAbx9fmQ (envelope-from ) for ; Wed, 07 Jul 2021 20:16:18 +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 73B861DC77 for ; Wed, 7 Jul 2021 22:16:17 +0200 (CEST) Received: from localhost ([::1]:35806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1Dxu-0002Xv-QL for larch@yhetil.org; Wed, 07 Jul 2021 16:16:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1Dx1-0002XO-Ex for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 16:15:19 -0400 Received: from ciao.gmane.io ([116.202.254.214]:58242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1Dwz-0005A6-Vh for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 16:15:19 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m1Dww-0009U2-5A for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 22:15:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Marco Wahl Subject: [WDYT] org-attach-sync better remove an empty attachment directory? Date: Wed, 07 Jul 2021 22:15:09 +0200 Message-ID: <87lf6h7ueq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:4kNFWgHj8sdDFmbL+XmRpPqb3Ao= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1625688977; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Fenk88YNoG8G4dyHmqRBdQLvesgL9MahKA/JKbbU3tA=; b=NV06pha72rIfIjUVZu/nQqpYwpPbIHNa66QYHLiZNGqLtHgWS4uwOfMwMVBZhfulng7a9a pDl0223fEW3J9hP1TnsFT31qSDR/WODFKJipFjXPrDLuGJRajrdUZfL33rnUKDXkdPBtLQ CGQCCm4d1HWjcYjEko4mOqti97ZSYb9KqcdgjK1+AyHi6W6wkBj7t9hQtjAnpar/OeaYee 2BV5ncHMjmxMnGnb5fYT9jQxZcAqj2zG/N9dC5YpCF7LVhhoiScONftUN7XiVuIkj4Gxm3 2TZMCM5adnXcJdOvDzfI81nVqtfMHGYWZIgYiNAkH1phhVxxniuUSydtDtpYDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625688977; a=rsa-sha256; cv=none; b=T4A6EqI9S0dN5tHT9+a4TFDkeFouLKIzgSahCvoZcFke3b1V+ovCfzCAsPSGwXpPWPu7OO zOmHJjN7COmAfhylgB+Hhut7oWX96bEuqEkO6x5RykfxsCr7gPCMPKpDTP99d2Ipuy9mpU AAVd8FrZQvy7msd3Sp6LbtsNu6LoxeKD04WIz2jSFGylVulqGTlpnwe5hgWOniT8Fq5OTz vj2jlgsFncMZnAGJkvJ17liyDsYpr4gC/GQjP6X2Ct1R+XPnZAZWSInNVzZHA8Oe7VCK0j 6licLqWLdZayXqPEyDVzVT+Ghn4RRCQb2f95eXVmjEnsQNmUx0EcZA9QsZBE3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: -0.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 73B861DC77 X-Spam-Score: -0.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: WCce8gK6G8N+ 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. Ciao, -- Marco