MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / extract

Method extract

tools/python-3.11.9-amd64/Lib/zipfile.py:1673–1684  ·  view source on GitHub ↗

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'.

(self, member, path=None, pwd=None)

Source from the content-addressed store, hash-verified

1671 return _ZipWriteFile(self, zinfo, zip64)
1672
1673 def extract(self, member, path=None, pwd=None):
1674 """Extract a member from the archive to the current working directory,
1675 using its full name. Its file information is extracted as accurately
1676 as possible. `member' may be a filename or a ZipInfo object. You can
1677 specify a different directory using `path'.
1678 """
1679 if path is None:
1680 path = os.getcwd()
1681 else:
1682 path = os.fspath(path)
1683
1684 return self._extract_member(member, path, pwd)
1685
1686 def extractall(self, path=None, members=None, pwd=None):
1687 """Extract all members from the archive to the current working

Callers

nothing calls this directly

Calls 1

_extract_memberMethod · 0.95

Tested by

no test coverage detected