If you plan to do a lot of ZIP file creation from Python, it's usually a
whole lot faster, and may produce smaller files, if you call out to an
external utility to do the compression instead of doing it from within the
Python zipfile module. You can also pass compression arguments like -9
that pr
a h wrote:
> thanks... i tried compression as zipfile.ZIP_DEFLATED and it works
> fine. Now i used WinRar software to compress a 1.5GB file, it results
> into a 42MB file where as using my script it results into 62 MB file.
> Is it because of different format, if so, is there any winrar lib or
> eq
thanks... i tried compression as zipfile.ZIP_DEFLATED and it works fine. Now
i used WinRar software to compress a 1.5GB file, it results into a 42MB file
where as using my script it results into 62 MB file. Is it because of
different format, if so, is there any winrar lib or equivalent lib for
pyth
On 08/04/2010 09:52, a h wrote:
hi
I want to zip a folder using python script. I have written below piece
of code, but i found that total size of all file is equal to the size of
resultant zip file. so no compression is done. Its just put all the
files in a folder and say save it with an extensio
hi
I want to zip a folder using python script. I have written below piece of
code, but i found that total size of all file is equal to the size of
resultant zip file. so no compression is done. Its just put all the files in
a folder and say save it with an extension(.zip). May be i am wrong someway