tarfile.TarFile.extractall

TarFile.extractall(path='.', members=None)[source]

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().