You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The XKCD archive QmdmQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm is currently quite hard to browse through as the filenames are sorted lexicographically instead of numerically. It might be a good idea to allow user some control over ipfs add to prevent this sort of thing from happening, using one of the two options:
A new --sort feature to define a sorting method (lexicographic, numeric, version...). This may... get out of hand (see the bunch of sorting-methods sort(1) accepts), so as an alternative:
A way to let ipfs add accept piped filenames similar to the Unix cpio command and use the stdin-given order. The command-line <path>... option may be useful for mockups, but command-line length limit is a very real thing when we are talking about doing --recursive on our own to maintain a sorted order.
The text was updated successfully, but these errors were encountered:
It's not possible, the unixfs spec (probably sadly) REQUIREs lexicographic sorting.
I already broke estuary <-> boost transfers by using (base32) numerical sorting in Linux2ipfs so this has real impacts.
(see filecoin-project/boost#673 for more details)
Checklist
Description
The XKCD archive QmdmQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm is currently quite hard to browse through as the filenames are sorted lexicographically instead of numerically. It might be a good idea to allow user some control over
ipfs add
to prevent this sort of thing from happening, using one of the two options:--sort
feature to define a sorting method (lexicographic, numeric, version...). This may... get out of hand (see the bunch of sorting-methodssort(1)
accepts), so as an alternative:ipfs add
accept piped filenames similar to the Unixcpio
command and use the stdin-given order. The command-line<path>...
option may be useful for mockups, but command-line length limit is a very real thing when we are talking about doing--recursive
on our own to maintain a sorted order.The text was updated successfully, but these errors were encountered: