Remove symlink directly

This commit is contained in:
VirtuBox
2019-08-30 10:17:31 +02:00
parent be0b0a832e
commit 27aa48ae7b
3 changed files with 4 additions and 16 deletions

View File

@@ -302,10 +302,10 @@ class WOFileUtils():
if not os.path.exists(target_path):
links.append(path)
broken.append(path)
os.remove(path)
else:
links.append(path)
else:
# If it's not a symlink we're not interested.
continue
return broken
return True