Fix: file module does not remove dangling symlinks

pull/603/head
Rafal Lewczuk 14 years ago committed by Michael DeHaan
parent 06e99ee75e
commit 3de61fb180

@ -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…
Cancel
Save