There's a similar thread here but it's sort of left unanswered: Adding extra files to a zip?
I have this script to append to a zip file archive:
print 'appending to the archive'
zf = zipfile.ZipFile('W:\Data\WillCounty_AddressPoint.zip', mode='a')
zf.write('Z:\Jared\Disclaimer - Final.txt')
The problem is that I included the whole file path on line 6, so the whole folder (Jared) was appended to the zip and not just the (.txt) file.
If I exclude the path and type only the file name it can't be found?
Is there a way to just append the (.txt) file to the zip file?