Skip to content

Instantly share code, notes, and snippets.

@eckardm
Created March 16, 2017 17:05
Show Gist options
  • Save eckardm/99a935b17fb9974696d744d8a5c7d130 to your computer and use it in GitHub Desktop.
Save eckardm/99a935b17fb9974696d744d8a5c7d130 to your computer and use it in GitHub Desktop.
def _archive_zip(self, src, dst):
"""Return the command that creates the ZIP archive file."""
if not dst.endswith('.zip'):
dst += '.zip'
return (dst, [
'7z', 'a', # Add
'-bd', # Disable percentage indicator
'-tzip', # Type of archive
'-y', # Assume Yes on all queries
dst, # Destination
src, # Source
])
@sevein
Copy link

sevein commented Apr 14, 2017

Thank you, this worked great. Now in qa/0.x. artefactual/archivematica-storage-service#173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment