Fix: file module does not remove dangling symlinks

reviewable/pr18780/r1
Rafal Lewczuk 13 years ago committed by Michael DeHaan
parent cebba29fb6
commit b6be1f5128

@ -290,7 +290,7 @@ def rmtree_error(func, path, exc_info):
# go... # go...
prev_state = 'absent' prev_state = 'absent'
if os.path.exists(path): if os.path.lexists(path):
if os.path.islink(path): if os.path.islink(path):
prev_state = 'link' prev_state = 'link'
elif os.path.isfile(path): elif os.path.isfile(path):

Loading…
Cancel
Save