Part of twisted.python View Source
Class | ChunkingZipFile | A ZipFile object which, with readfile(), also gives you access to a filelike object for each entry. |
Class | ZipFileEntry | File-like object used to read an uncompressed entry in a ZipFile |
Class | DeflatedZipFileEntry | File-like object used to read a deflated entry in a ZipFile |
Function | unzip | Unzip the file |
Function | unzipIter | Return a generator for the zipfile. This implementation will yield after every file. |
Function | countZipFileChunks | Predict the number of chunks that will be extracted from the entire zipfile, given chunksize blocks. |
Function | countFileChunks | Count the number of chunks that will result from the given
ZipInfo .
|
Function | countZipFileEntries | Count the number of entries in a zip archive. (Don't use this function.) |
Function | unzipIterChunky | Return a generator for the zipfile. This implementation will yield after every chunksize uncompressed bytes, or at the end of a file, whichever comes first. |
Class | _FileEntry | Abstract superclass of both compressed and uncompressed variants of file-like objects within a zip archive. |
Parameters | filename | the name of the zip file |
directory | the directory into which the files will be extracted | |
overwrite | if on, overwrite files when they exist. You can still get an error if you try to create a directory over a file with the same name or vice-versa. |
Return a generator for the zipfile. This implementation will yield after every file.
The value it yields is the number of files left to unzip.ZipInfo
.
Parameters | zipinfo | a zipfile.ZipInfo instance describing an entry in a zip
archive to be counted.
|
Returns | the number of chunks present in the zip file. (Even an empty file
counts as one chunk.)
(type: int
) |
Parameters | filename | The filename of a zip archive.
(type: str
) |
Return a generator for the zipfile. This implementation will yield after every chunksize uncompressed bytes, or at the end of a file, whichever comes first.
The value it yields is the number of chunks left to unzip.