From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aHG/DFeD9GLtAQAAbAwnHQ (envelope-from ) for ; Thu, 11 Aug 2022 06:19:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iJy2C1eD9GISOwEAG6o9tA (envelope-from ) for ; Thu, 11 Aug 2022 06:19:35 +0200 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 D42DFD3BA for ; Thu, 11 Aug 2022 06:19:34 +0200 (CEST) Received: from localhost ([::1]:37482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLzfQ-00064a-Kx for larch@yhetil.org; Thu, 11 Aug 2022 00:19:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLzeJ-00064S-7p for emacs-orgmode@gnu.org; Thu, 11 Aug 2022 00:18:23 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:36691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLzeG-000762-Vr for emacs-orgmode@gnu.org; Thu, 11 Aug 2022 00:18:22 -0400 Received: by mail-pg1-x534.google.com with SMTP id s206so16158286pgs.3 for ; Wed, 10 Aug 2022 21:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=vqJUkxAsSr3sDo+kCBbp6ojVJxc6JpKV1nNuwpaGbTo=; b=HZ4k5PyWqUoxOunGfeHkcB/bxzM7L7YHdvxwb8b/YSlc22LYwJJb3J5H3m+NtyHA7T LnlLYDtvzBLvewZD7dY9Sp+N/LwS1mduoP/FgzO1k25ZaruCPUYayiytVnwja/0aUMEd xjsqS7jHBP4l1FCeL/ctAET2eZYAHsqVtvUzLZ/96FreAJQESdlCwSVjW8V/HYrz9TRf 78UXKPANlFFRMOdfVvb3J5giPGDv4boWDW/bqIhgPQTXyLSL0Xjdsp0LSa71zObz44Jf LVJ0q1CmiWcn/46JzRpVE3iKmfybhyX2VZbfaWDQC+TGTyDq9Q+qk7n1hwSrsuW0RfZM Wwpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=vqJUkxAsSr3sDo+kCBbp6ojVJxc6JpKV1nNuwpaGbTo=; b=SpvGZUMGrJhxa2i2cWvIr2gy9lohLZ8xMeYkPFmiPHE04Q1g6z/09jQhkBOAiBYkO8 VfitqRopfbem1oyrs3aaGLs81mkReDK+72mSDHx4t5eEL5D/4wF1vJzGkoo+NCXfiRcD qoFkQteXmL2Zbu/XKG+wsfYxYFgJM1KL2MLy/Js/ZlqzYtgu9GXSbmGi4THgqniQz8Gt RqiO9xZfs2NYWyH9rMQnmg4l1XARbE4WVJX4Ys043HZXm1o0IDeZD2NWEuFXj7yaau/b prTddLIEqkyQ5QiK1hFbpyhR6tLzLlgvw13oLe22SudbzamGYQjsjZZspaqwJhCC0HRW 7SSQ== X-Gm-Message-State: ACgBeo0P4ZDI/i/ob4fShSI8f8h/qPQiU9Pgos9qx0JDZTiUNp7XlOyb Dlh7wsOgrBh2skSgRNMTYYJyCjb2sWxGjPWy X-Google-Smtp-Source: AA6agR4y/75DraRA1SVDTuC+LrJrrCMMpaXxv6QaW+w5SfTDkfm7GKL9Rdea2TxvRw0n8RgzjVctYw== X-Received: by 2002:a05:6a00:f85:b0:52e:4aac:546 with SMTP id ct5-20020a056a000f8500b0052e4aac0546mr30254795pfb.40.1660191495030; Wed, 10 Aug 2022 21:18:15 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id n3-20020a632703000000b0041c0c9c0072sm10488594pgn.64.2022.08.10.21.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 21:18:14 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH v3] Re: [BUG] org-attach-id-ts-folder-format fails on customized IDs [9.6 (9.6-??-2e9999783)] In-Reply-To: References: <87k084v1wa.fsf@localhost> <871qtxhsm6.fsf@localhost> <87a68ce32u.fsf@localhost> <871qtodygs.fsf@localhost> Date: Thu, 11 Aug 2022 12:19:17 +0800 Message-ID: <87v8qz9zui.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=yantar92@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660191574; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=vqJUkxAsSr3sDo+kCBbp6ojVJxc6JpKV1nNuwpaGbTo=; b=lvRJZVJbyI18vOa6nBjQWdMN+L562GpWKcQIYNn/WWsSjD3mEzFfoA1ldaQLDbVz8beDE7 sF6Bxl/IYw4LLWsN0a5ttbT6Jynpu0HqDUTl5rLIYX8Lblgb1gClnkXgbImHQGmy5joqo0 EzHHpVZpKemMxLS5g863wQUoH7cV7GzSoe8a9clUZ/3xej9MsigKaBeN8uv/ay0lZsTjik 2MFtl7MkMR7pJGdqV+l13F5To0mXnKtp/PQ85UNvk8Bq1nei+7T+NvsEdPtDbDI6qiFSIM 89jaGSpodPzdqF3ZTagIFGDfujyLoCYduh7bIsAtakSqa0b3vcWvglmrqvg4iQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660191574; a=rsa-sha256; cv=none; b=csDG0iC9zD/LODLMoKFq/TYgkzZW30JBcW/0AnzwSvDT3LTfiYAHF9XeFdk4zRZ/wxmZBs yJZg8TTqxrDkhDpHUvJjil4ejF2LhmU2qi95vEcqo/8/gLktM2Ifp3pAItWcY3+jq1lXcZ X/ctNCeHB8uHsshU+WIeQBptrn4llrXJZBwvHRzOntLjDETez0Pqrrxn/Qf8ykLqLYKuKv 7ERzGOBEdoXV+06B9IorGsfep7xAkZgA2/i5TmSDKRN7QeMjsqoE+Km+XvYvneuvZIFHgU EGDJJBZIida1Znc3zbAlFvEi6hgUq0vCUgJD/80Ee4Jj2IgNdWz83IFQ+/ok5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HZ4k5PyW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.68 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HZ4k5PyW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D42DFD3BA X-Spam-Score: -3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: Bxp8rAveCl11 Max Nikulin writes: >>> Please, do not use path components starting with dash, it is terrible >>> for CLI tools. By the way, you promised underscores, not dashes. >> >> Why? > > It is inconvenient in interactive sessions (in scripts appropriate > measures must be taken anyway), the following does not list content of > the "--" directory: > > ls -l -- Thanks for the clarification. >> I slightly dislike the "___xx" compared to "______" because it will >> create a proliferation of top-level folders as opposed to cramping the >> non-standard IDs into a single "______" folder. > > I believed that proliferation of folders is for purpose. Intermediate > directories allows to avoid excessive number of files in single > directory. ext4 with directory tree index usually is not the case, but > other filesystems may have rather poor performance when too much files > are stuffed into single folder. Some applications become really slow for > huge directories. I was referring to TS style timestamp resolver here. It is designed to group directories by creation time, not to distribute them homogeneously. > On the other hand there are not so many distinct file names that may > fall into "__" directory, so perhaps it is OK. Yes. Such short IDs are not supposed to be common and even if they are, the maximum possible number of such IDs is relatively small. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92