Fix: file module does not remove dangling symlinks
This commit is contained in:
parent
cebba29fb6
commit
b6be1f5128
1 changed files with 1 additions and 1 deletions
2
file
2
file
|
@ -290,7 +290,7 @@ def rmtree_error(func, path, exc_info):
|
|||
# go...
|
||||
|
||||
prev_state = 'absent'
|
||||
if os.path.exists(path):
|
||||
if os.path.lexists(path):
|
||||
if os.path.islink(path):
|
||||
prev_state = 'link'
|
||||
elif os.path.isfile(path):
|
||||
|
|
Loading…
Reference in a new issue