M
Michael Trosen
I am trying to add a new file to a zip, so I do the normal creation of
a temp zip, add all the old zip contents to the new zip file, then add
my new file. However, when I add it, it also adds the directory
structure leading up to that new file. I want to just save the file,
and get rid of the directory structure.
Ie: file to add: /tmp/myfile.txt
When added to the zip, it has the following
file1.txt
file2.txt
/tmp/myfile.txt
I want it to be:
file1.txt
file2.txt
myfile.txt
Any suggestions?
Thanks!
Michael
a temp zip, add all the old zip contents to the new zip file, then add
my new file. However, when I add it, it also adds the directory
structure leading up to that new file. I want to just save the file,
and get rid of the directory structure.
Ie: file to add: /tmp/myfile.txt
When added to the zip, it has the following
file1.txt
file2.txt
/tmp/myfile.txt
I want it to be:
file1.txt
file2.txt
myfile.txt
Any suggestions?
Thanks!
Michael