Feb-11-2020, 09:12 PM
(Feb-11-2020, 04:27 PM)umkc1 Wrote: for filename in files:
zf.write(os.path.join('620_PANO_1_20190802', filename)
The documentation says to add the argument "arcname" to the .write() line. Otherwise your filename is used by default and the directory is included.
maybe try this where arcname is the name you want to give the archive:
for filename in files: zf.write(os.path.join('620_PANO_1_20190802', filename, arcname)