On 10/08/2022 20:23, Ihor Radchenko wrote:
Max Nikulin writes:
+the path."
+ (if (< (length id) 3)
+ (format "--/%s" id)
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 --
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.
On the other hand there are not so many distinct file names that may
fall into "__" directory, so perhaps it is OK. Concerning "unknown" I am
less sure.
I do not have strong opinion how to properly deal with short IDs.