Top "Zipfile" questions

For issues relating to creating and/or utilizing zip files.

How do I create a zip file of a file path using Python, including empty directories?

I've been trying to use the zipfile and shutil.make_archive modules to recursively create a zip file of a …

python zip zipfile shutil
How to handle unzipping ZipFile with paths that are too long/duplicate

When unzipping files in Windows, I'll occasionally have problems with paths that are too long for Windows (but okay in …

c# zipfile dotnetzip
Unzip buffer with Python?

I have a buffer of bytes read from a library call and I would like to unzip the content which …

python zip zlib unzip zipfile
extracting contents of ZipFile entries when read from byte[] (Java)

I have a zip file whose contents are presented as byte[] but the original file object is not accessible. I …

java zip zipfile zipinputstream
cURL Download Zip File - " argument is not a valid File-Handle resource"

I'm trying to download a zip file from a server I host and store it on another server using PHP …

php curl zip zipfile
How can I avoid: "ZipFile instance has no attribute '__exit__''" when extracting a zip file?

The code is: import sys execfile('test.py') In test.py I have: import zipfile with zipfile.ZipFile('test.jar', …

python zipfile execfile
How to extract a file within a folder within a zip?

I need to extract a file called Preview.pdf from a folder called QuickLooks inside of a zip file. Right …

python file-extension zipfile sys os.path
How can I pass a Python StringIO() object to a ZipFile(), or is it not supported?

So I have a StringIO() file-like object, and I am trying to write it to a ZipFile(), but I get …

python zipfile stringio
Compression fails when using ionic zip

I am using the latest version of ionic zip version 1.9.1.8.I have set the property of ionic zip ParallelDeflateThreshold = 0. The …

c# zip zipfile dotnetzip
Download and zip files in React?

I have an application that stores consultations for users. The consultation has data about the user and has documents attached …

reactjs react-redux zip zipfile jszip