PyDocs

Nav

Data Compression and Archiving

ZipFile.extract

zipfile

method of ZipFile (source)
  • ZipFile.extract(member, path=None, pwd=None)
Extract a member from the archive to the current working directory,
using its full name. Its file information is extracted as accurately
as possible. 'member' may be a filename or a ZipInfo object. You can
specify a different directory using 'path'. You can specify the
password to decrypt the file using 'pwd'.
Changed in 3.6, 3.6.2
  • 3.6: Calling extract() on a closed ZipFile will raise a ValueError. Previously, a RuntimeError was raised.
  • 3.6.2: The path parameter accepts a path-like object.
0 Examples
No examples for zipfile/ZipFile.extract.
See Also
No see-alsos for zipfile/ZipFile.extract
0 Notes
No notes for ZipFile.extract