Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add control flags for disabling upload/download/listing. #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adeutscher
Copy link

Add control options: --no-listing (Closes #20), --no-upload (Closes #3), and --no-download.

  • With --no-listing, no files will be gathered and no table will be displayed. Requesting a non-file request other than to the base directory will redirect to the base directory.
  • With --no-download, file links will be not be links. Attempting to visit the link manually will result in a 403 push-back.
  • With --no-upload, the upload interface will not be displayed. Attempting to perform an upload manually without the GUI will result in a 405 push-back.

@adeutscher
Copy link
Author

Using --no-listing and --no-download will also make #14 possible, though not as the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag for disabling directory listing Read-only mode
1 participant