debugging

This commit is contained in:
j 2019-01-14 13:21:24 +05:30
commit 4a956e2a65
2 changed files with 1 additions and 2 deletions

View file

@ -800,6 +800,7 @@ class File(db.Model):
if os.path.exists(path) and os.path.exists(current_path):
os.unlink(path)
return
logger.debug('mv "%s" "%s"', self.path, new_path)
self.path = new_path
self.save()
for folder in set(os.path.dirname(p) for p in [current_path, path]):