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

Method extractall

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

Extract all members from the archive to the current working directory. `path' specifies a different directory to extract to. `members' is optional and must be a subset of the list returned by namelist().

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

Source from the content-addressed store, hash-verified

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
1688 directory. `path' specifies a different directory to extract to.
1689 `members' is optional and must be a subset of the list returned
1690 by namelist().
1691 """
1692 if members is None:
1693 members = self.namelist()
1694
1695 if path is None:
1696 path = os.getcwd()
1697 else:
1698 path = os.fspath(path)
1699
1700 for zipinfo in members:
1701 self._extract_member(zipinfo, path, pwd)
1702
1703 @classmethod
1704 def _sanitize_windows_name(cls, arcname, pathsep):

Callers 2

unarchiveFunction · 0.95
mainFunction · 0.45

Calls 2

namelistMethod · 0.95
_extract_memberMethod · 0.95

Tested by

no test coverage detected