You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shutil.rmtree() on a symlink with a trailing slash empties its target #160322
shutil.rmtree() is documented to refuse a symbolic link to a directory, but the check is an lstat() of the path as given, so a trailing separator gets past it. rmtree('link/') deletes everything inside the link's target and then fails in the final rmdir(). The original symptom was fixed for the plain spelling in gh-46010.
Activity
pythongh-160322: document shutil.rmtree("link/") symlink following be…
gh-160322: document shutil.rmtree("link/") symlink following behavior (…