diff --git a/confluent_server/confluent/syncfiles.py b/confluent_server/confluent/syncfiles.py index 8655870b..90df0686 100644 --- a/confluent_server/confluent/syncfiles.py +++ b/confluent_server/confluent/syncfiles.py @@ -243,6 +243,8 @@ def mkpathorlink(source, destination, appendexist=False): realdest.write(sourcedata.read()) os.remove(tmpnam) else: + if os.path.islink(destination): + os.remove(destination) os.symlink(source, destination)