mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows (GH-113049)
This commit is contained in:
parent
c6e953be12
commit
29f7eb4859
9 changed files with 93 additions and 28 deletions
|
@ -273,7 +273,7 @@ def _dont_follow_symlinks(func, path, *args):
|
|||
# Pass follow_symlinks=False, unless not supported on this platform.
|
||||
if func in _os.supports_follow_symlinks:
|
||||
func(path, *args, follow_symlinks=False)
|
||||
elif _os.name == 'nt' or not _os.path.islink(path):
|
||||
elif not _os.path.islink(path):
|
||||
func(path, *args)
|
||||
|
||||
def _resetperms(path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue