Skip to content

lconrad/LC-165: Encrypt dir contents if only encrypting single dir#9

Open
storskegg wants to merge 2 commits intomasterfrom
lconrad/LC-165
Open

lconrad/LC-165: Encrypt dir contents if only encrypting single dir#9
storskegg wants to merge 2 commits intomasterfrom
lconrad/LC-165

Conversation

@storskegg
Copy link
Contributor

If len(files) == 1, and that file is a directory, archive the directory's contents rather than the directory itself.

Jira Issue: https://firmguardian.atlassian.net/browse/LC-165

If `len(files)` == 1, and that path is a directory, encrypt archive
its contents rather than the directory itself, before encrypting.
@Ciznit
Copy link
Collaborator

Ciznit commented Jan 7, 2018

For this scenario we want to treat a single directory in the same manner as an individual file, but we zip if before encryption and unzip it after decryption.

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.

2 participants