pyminizip icon indicating copy to clipboard operation
pyminizip copied to clipboard

add subfolder support

Open ericpyle opened this issue 11 years ago • 1 comments

as far as I can tell, in both the compress and compress_multiple api there is no way to copy source files into subfolders in the destination zip. One side-effect of this, is that different files having duplicate names can result in multiple entries in the archive, but extracts only to one file (race condition).

Some possible implementations:

  1. have compress and compress_multiple take a dictionary argument that maps from source path-name to destination path name
  2. in compress_multiple, use subfolder structure if all the src directories have a common base directory

ericpyle avatar Apr 09 '14 17:04 ericpyle

if this is implemented, also please consider taking a path as an argument for the source files and subfolders.

ericpyle avatar Apr 09 '14 17:04 ericpyle