@ -1362,8 +1363,11 @@ class NsmServerControl(object):
logger.warning(f"Can't rename {nsmSessionName} to {newName}. {newName} already exists.")
returnFalse
else:
logger.info(f"Renaming {nsmSessionName} to {newName}.")
oldPath.rename(newPath)
logger.info(f"Renaming {nsmSessionName} to {newName}.")
tmp=pathlib.Path(oldPath.name+str(uuid4()))#Can't move itself into a subdir in itself. move to temp first. We don't use tempdir because that could be on another partition. we already know we can write here.