mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #162] Ability to hide all directories, but not files #80
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jlll1 on GitHub (Dec 24, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/162
Specific Demand
Currently, we are able to hide all files by simply passing
*to--hidden, but there is no way to distinguish between files and directories and more complex globbing patterns don't seem to be working (such as*/).I'd like to have a setup where all the directories are hidden, but once an user has the link to a directory, then he can see all files inside it.
Now, this is achievable by just listing out all directories as an input to
--hidden, but such configuration would have to get updated each time a new directory is added.Implement Suggestion
I think the best way to have this implemented would be to have support for globbing patterns such as
*/.Another approach would be to add 2 new commands
--hidden-filesand--hidden-dirswhere--hiddenwould be a combination of these two. I'm not sure if I like that personally, but that's definitely an option.@zanderzhng commented on GitHub (Feb 14, 2023):
I'd like the ability to hide files as well, not only hiding directories.