Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
bpo-37834: Normalise handling of reparse points on Windows (GH-15231)
bpo-37834: Normalise handling of reparse points on Windows * ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed) * nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point) * nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour) * nt.readlink() will read destinations for symlinks and junction points only bpo-1311: os.path.exists('nul') now returns True on Windows * nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
- Loading branch information
Showing
with
470 additions
and 233 deletions.
- +51 −2 Doc/library/os.rst
- +4 −0 Doc/library/shutil.rst
- +10 −0 Doc/library/stat.rst
- +21 −0 Doc/whatsnew/3.8.rst
- +1 −0 Include/fileutils.h
- +41 −7 Lib/shutil.py
- +47 −14 Lib/test/test_os.py
- +66 −3 Lib/test/test_shutil.py
- +4 −2 Lib/test/test_tools/test_lll.py
- +1 −5 Lib/test/test_venv.py
- +2 −0 Misc/NEWS.d/next/Windows/2019-08-12-12-00-24.bpo-37834.VB2QVj.rst
- +2 −0 Misc/NEWS.d/next/Windows/2019-08-21-12-58-18.bpo-1311.BoW1wU.rst
- +7 −0 Modules/_stat.c
- +1 −18 Modules/clinic/posixmodule.c.h
- +206 −181 Modules/posixmodule.c
- +6 −1 Python/fileutils.c
Oops, something went wrong.