python-zipfile
Bad magic number error with ZipFile module in Python
I am using Python 2.7 on Windows 7 (64 bit). When I try to unzip a zip file with ZipFile module I get the following error:-[详细]
2023-04-12 06:40 分类:问答Zipfile python module bytesize difference
I\'m using zipfile module for python to extract a zipfile I retrieved from the internet using urllib.urlretrieve()[详细]
2023-03-29 00:43 分类:问答How can I pass a Python StringIO() object to a ZipFile(), or is it not supported?
I have a StringIO() file-like object, and I am trying to write it to a ZipFile(), but I get this TypeError:[详细]
2023-03-12 08:29 分类:问答Can't unzip archive built with zipfile (Python)
I\'m having problems with an archive that I built using zipfile in Python. I\'m iterating over all the files in a directory and writing them to an archive. When I attempt to extract them afterward I g[详细]
2023-03-07 15:41 分类:问答zipfile cant handle some type of zip data?
I came up over this problem while trying to decompress a zip file. -- zipfile.is_zipfile(my_file) always returns False, even though the UNIX command unzip handles it just fine. Also, when trying to do[详细]
2023-02-09 15:48 分类:问答Extract files from zip without keeping the structure using python ZipFile?
I try to extract all files from .zip containing subfolders in one folder.I want all the files from subfolders extract in only one folder without keeping the original structure. At the moment, I extrac[详细]
2023-02-08 18:03 分类:问答zipfile module giving unreliable results
I made a dictionary attack on encrypted zip files, using the zipfile library. When I started using BIG dictionaries sometimes I got false positive results, i.e. password could be \"wool\" and \"12630\[详细]
2023-02-03 16:43 分类:问答create zip of complete directory using zipfile python module
zip = zipfile.ZipFile开发者_运维技巧(destination+ff_name,"w") zip.write(source) zip.close()[详细]
2023-02-01 00:17 分类:问答Extracting a .app from a zip file in Python, using ZipFile
I\'m trying to extract new revisions of Chromium.app from their snapshots, and I can 开发者_JS百科download the file fine, but when it comes to extracting it, ZipFile either extracts the chrome-mac fol[详细]
2023-01-01 14:45 分类:问答Python zipfile hangs when writing
I am trying to use the zipfile module in Python to create simple zip files: import zipfile files = (\'a\', \'b\', \'c\', \'d\', \'e\', \'f\', \'g\', \'h\')[详细]
2022-12-17 11:57 分类:问答