Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow users to download individual file or folder structure without having to download the whole project. #596
It would be amazing if brackets had an option to download individual file or folder structure without having to download the whole project.
Here are the behaviors for this new feature:
Downloading a Single file
Downloading a Folder
If the folder is empty and the user chooses to download it, should an error message show or should the empty folder be zipped and downloaded? What do you think?
I'd recommend you make the context-menu string just say "Download" and then you don't need to figure out if its a file or folder in the UI.
I'd then consider reworking this function https://github.com/mozilla/brackets/blob/master/src/filesystem/impls/filer/ArchiveUtils.js#L145 so that you can pass a path instead of having it assume you want to zip the project root. It should just "Do the Right Thing" if you pass it a file or folder.
I'm assuming you want to work on this, but let me know if I'm wrong.