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)
| 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): |
no test coverage detected