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

Download without folder inside archive #4

Closed
jan-gerard opened this issue Dec 13, 2016 · 5 comments
Closed

Download without folder inside archive #4

jan-gerard opened this issue Dec 13, 2016 · 5 comments

Comments

@jan-gerard
Copy link

Hi,
Is there a way to create a zip archive that does not contain a subfolder, but only the contents of that folder directly at the root level of the archive? And is there a way to give the archive a specific name?
I have a github repository with a directory https://github.com/jan-gerard/EV3_GyroBlox/zipball/master/unzipped, and I would like to create a link that downloads the contents of that folder as a zip file without a sub-folder, with a specific name (EV3_GyroBlox.ev3s) and extension, which is not zip.

@MinhasKamal
Copy link
Owner

MinhasKamal commented Dec 13, 2016

  1. "Is there a way to create a zip archive that does not contain a subfolder, but only the contents of that folder directly at the root level of the archive?", no, this feature is not added in the application. But it is possible to do that.
  2. "Is there a way to give the archive a specific name?", this functionality is not available for now, but may be added in future.

@jan-gerard
Copy link
Author

jan-gerard commented Dec 13, 2016 via email

@tryashtar
Copy link

Any chance of this getting added? I have a repository set up in such a way that many of the folders are useful to another program when simply zipped up, so I can push changes and provide a simple link to snag the most up-to-date version.

This website was an absolute lifesaver until I noticed it put the folder inside the zip instead of just the contents directly. Now I'm really struggling to find an adequate replacement -- I'd be very grateful if you could implement or change this. Thanks for your work!

@MinhasKamal MinhasKamal reopened this Sep 8, 2017
MinhasKamal added a commit that referenced this issue Nov 2, 2017
@MinhasKamal
Copy link
Owner

MinhasKamal commented Nov 2, 2017

Features implemented-

  • Download without root folder, contents are added directly into archive.
  • Give the archive a specific name

A link looks like this in general-
https://minhaskamal.github.io/DownGit/#/home?url=<link>

Now, you can pass two new variables-
https://minhaskamal.github.io/DownGit/#/home?url=<link>&fileName=<name>&rootDirectory=<true or false or name>

Download with zip file name- 'octocat', and no root folder-
https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&fileName=octocat&rootDirectory=false

You can also give name to the root folder, just pass value except- 'true' or 'false'.

@jan-gerard @tryashtar thank you for your suggestion. (will go live soon)

@tryashtar
Copy link

Thank you so much, I really appreciate it!

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

No branches or pull requests

4 participants
@MinhasKamal @jan-gerard @tryashtar and others