Skip to content
Open
2 changes: 1 addition & 1 deletion Lib/tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,7 @@ def extractall(self, path=".", members=None, *, numeric_owner=False,
continue
dirpath = os.path.join(path, tarinfo.name)
try:
lstat = os.lstat(dirpath)
lstat = os.lstat(dirpath.replace(r'/', os.sep))
except FileNotFoundError:
self._log_no_directory_fixup(tarinfo, 'missing')
continue
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:mod:`tarfile`: :meth:`TarFile.extractall` now uses OS-specific separators to call lstat. This fixes a failure case with raw Win32 paths on Windows.
Loading