mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #416] Do not list root directory #228
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 @ign0tus on GitHub (Jul 15, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/416
Specific Demand
Is there a way to exclude the root directory from the directory listing? I want to share different directories with different groups of people without setting a password, but prevent them from accessing the files in another directory if they don't know the directory name.
My idea was that
/is only listed by providing password. The other two directories are accessible to anyone who knows the link.With this configuration, however, both directories are still listed when unregistered users access
/.Exclusion via
--hiddendoes not seem to be possible either, as I cannot apply this to individual directories.--hidden /*/does not work, and--hidden */no longer shows any directories at all.Is there a way to get the behavior I want or is it simply not possible?
Implement Suggestion@sigoden commented on GitHub (Jul 15, 2024):
We will not support this feature. see https://github.com/sigoden/dufs/issues/263#issuecomment-1708516517
@sigoden commented on GitHub (Jul 15, 2024):
Maybe You should run two instances of
dufswith different--path-prefixoptions.@ign0tus commented on GitHub (Jul 15, 2024):
Alright, thanks for the explanation in the linked issue. BTW, I appreciate that the application is kept simple and not all the desired functions are implemented in order to keep the application lean and clear.
Mh, I'll have to think about it. This requires one instance per directory that I want to share independently, right?
@sigoden commented on GitHub (Jul 15, 2024):
Dufs path-prefix requires one instance per directory.
If there are many directories, You can also put a reverse-proxy (nginx, trafik) in front of dufs. If the path is
/and there is no authentication, block it; otherwise, pass it to dufs.@ign0tus commented on GitHub (Jul 15, 2024):
That's an excellent idea, thanks for the suggestion.