I have created a zip archive in Python with shutil.make_archive
, but when I extract it with both shutil.unpack_archive
and zipfile.ZipFile(file).extractall()
the file modes are changed as:
old mode 100755
new mode 100644
Currently I have to make a subprocess call to run('unzip ...')
for it to work? Is there a Python builtin that I can use to preserve the file modes?