diff --git a/src/pylorax/sysutils.py b/src/pylorax/sysutils.py index 219819df..d35906c5 100644 --- a/src/pylorax/sysutils.py +++ b/src/pylorax/sysutils.py @@ -99,7 +99,7 @@ def mvfile(src, dst): return dst def remove(target): - if os.path.isdir(target): + if os.path.isdir(target) and not os.path.islink(target): shutil.rmtree(target) else: os.unlink(target)