Use shutil.move() instead of os.replace/rename

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
JoeLametta
2020-01-28 21:50:27 +00:00
parent 7f438d1b75
commit b39345e1f0
3 changed files with 6 additions and 4 deletions

View File

@@ -535,7 +535,7 @@ class ReadVerifyTrackTask(task.MultiSeparateTask):
if not self.exception:
try:
logger.debug('moving to final path %r', self.path)
os.rename(self._tmppath, self.path)
shutil.move(self._tmppath, self.path)
# FIXME: catching too general exception (Exception)
except Exception as e:
logger.debug('exception while moving to final '