mjpclab / go-http-file-server

Simple command line based HTTP file server to share local file system
MIT License
379 stars 55 forks source link

Suggestion: No-index on some folders, per dir per user #42

Closed fimmspin closed 4 months ago

fimmspin commented 6 months ago

New feature to add could be to show a blank-dir with no file index/contents (this setting will be per-dir-per-user). A user can download files only if he knows the exact filename to download, or can upload a file to this 'blank-dir' (but all files in that dir will be visible only to enabled users only). This will permit to create an 'uploads' folder keeping files hidden by unwanted eyes of other users. Or to send a file dowload link to someone without the possibility he will see the full directory contents.

marjune163 commented 6 months ago

For version 1.18.0, you could use:

ghfs --index "" --index-user :/upload:admin1:admin2:admin3 --upload /upload ...