PyDocs

Nav

Data Compression and Archiving

TarFile.extractall

tarfile

method of TarFile (source)
  • TarFile.extractall(path='.', members=None, *, numeric_owner=False, filter=None)
Extract all members from the archive to the current working
directory and set owner, modification time and permissions on
directories afterwards. 'path' specifies a different directory
to extract to. 'members' is optional and must be a subset of the
list returned by getmembers(). If 'numeric_owner' is True, only
the numbers for user/group names are used and not the names.

The 'filter' function will be called on each member just
before extraction.
It can return a changed TarInfo or None to skip the member.
String names of common filters are accepted.
Changed in 3.5, 3.6, 3.12, 3.14
  • 3.5: Added the numeric_owner parameter.
  • 3.6: The path parameter accepts a path-like object.
  • 3.12: Added the filter parameter.
  • 3.14: The filter parameter now defaults to 'data'.
0 Examples
No examples for tarfile/TarFile.extractall.
See Also
No see-alsos for tarfile/TarFile.extractall
0 Notes
No notes for TarFile.extractall