mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix: file module does not remove dangling symlinks
This commit is contained in:
parent
06e99ee75e
commit
3de61fb180
1 changed files with 1 additions and 1 deletions
|
@ -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