[GH-ISSUE #162] Ability to hide all directories, but not files #80

Closed
opened 2026-04-08 16:50:13 +03:00 by zhus · 1 comment
Owner

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-files and --hidden-dirs where --hidden would be a combination of these two. I'm not sure if I like that personally, but that's definitely an option.

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-files` and `--hidden-dirs` where `--hidden` would be a combination of these two. I'm not sure if I like that personally, but that's definitely an option.
zhus closed this issue 2026-04-08 16:50:13 +03:00
Author
Owner

@zanderzhng commented on GitHub (Feb 14, 2023):

I'd like the ability to hide files as well, not only hiding directories.

<!-- gh-comment-id:1428984244 --> @zanderzhng commented on GitHub (Feb 14, 2023): I'd like the ability to hide files as well, not only hiding directories.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#80