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

Inclued Folders' Contents in the Zipped Archive #2

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

Inclued Folders' Contents in the Zipped Archive #2

wants to merge 4 commits into from

Conversation

Ga68
Copy link

@Ga68 Ga68 commented Aug 1, 2018

No description provided.

Adding folder functionality
Copy link
Owner

@nikipore nikipore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that you request a pull, you should no longer refer to your amendment as a "fork".

And your solution doesn't properly recurse into subdirectories. This one should work. Please test and amend.

@Ga68
Copy link
Author

Ga68 commented Aug 3, 2018

I fixed up the README as you suggested.

I looked at the link you provided for the zipping-a-directory and the limitation of that method is that it will automatically create a new archive. I did however, use your suggestion to strength the folder-traversal to using os.walk. In the process I set it up so that given the initial file list you send to the utility, all the files and folders get added to the "root directory" of the archive (regardless of where they come from on your computer...ex. across multiple folders), but then all sub-files/directories of directories initially passed will maintain their directory structure as originally made.

I added the capability to accept an Alfred environment variables for a default Archive location (ex. "I always want it to show up on my Desktop") and for a default Archive name (ex. "I want my zipped files to be called Zippy.zip by 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.

None yet

2 participants