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(). You can specify the password to decrypt all files us
(self, path=None, members=None, pwd=None)
| 1849 | return self._extract_member(member, path, pwd) |
| 1850 | |
| 1851 | def extractall(self, path=None, members=None, pwd=None): |
| 1852 | """Extract all members from the archive to the current working |
| 1853 | directory. 'path' specifies a different directory to extract to. |
| 1854 | 'members' is optional and must be a subset of the list returned |
| 1855 | by namelist(). You can specify the password to decrypt all files |
| 1856 | using 'pwd'. |
| 1857 | """ |
| 1858 | if members is None: |
| 1859 | members = self.namelist() |
| 1860 | |
| 1861 | if path is None: |
| 1862 | path = os.getcwd() |
| 1863 | else: |
| 1864 | path = os.fspath(path) |
| 1865 | |
| 1866 | for zipinfo in members: |
| 1867 | self._extract_member(zipinfo, path, pwd) |
| 1868 | |
| 1869 | @classmethod |
| 1870 | def _sanitize_windows_name(cls, arcname, pathsep): |