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

Implement folder download as archive #2066

Merged
merged 17 commits into from
Sep 14, 2021
Merged

Conversation

gmgigi96
Copy link
Member

Add a new http service which will create an archive (platform dependent, zip in windows and tar in linux) given a list of file.

The service for default listen on /download_archive and accept the following parameters in the query list:

  • dir = where the files/folders are
  • file = file/directory to add in the archive (can be specified multiple times)
    If the file parameter is not provided, it will be created an archive with all the files and folders in dir.

It is possible specify the max_num_files and max_size configs as thresholds, that if exceed will cause an abort of the archive generation.

Closes #1698

@gmgigi96 gmgigi96 requested a review from labkode as a code owner September 13, 2021 16:01
@update-docs
Copy link

update-docs bot commented Sep 13, 2021

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

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.

Implement folder download as archive
2 participants