mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-20 10:35:32 +01:00
fix duplicate file rename
This commit is contained in:
@@ -860,6 +860,8 @@ def smartMove(src, dest, delete=True):
|
||||
try:
|
||||
os.rename(src, os.path.join(source_dir, newfile))
|
||||
filename = newfile
|
||||
source_path = os.path.join(source_dir, filename)
|
||||
dest_path = os.path.join(dest, filename)
|
||||
except Exception as e:
|
||||
logger.warn(f"Error renaming {src}: {e}")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user