Commit 3de61fb1 by Rafal Lewczuk Committed by Michael DeHaan

Fix: file module does not remove dangling symlinks

parent 06e99ee7
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment