fix: allow moving files across devices

This commit is contained in:
2026-07-20 23:33:53 +03:00
parent 8f196ab617
commit da13b7b38b
+2 -1
View File
@@ -2,6 +2,7 @@ import fnmatch
import io
import os
import pathlib
import shutil
import requests
import send2trash
@@ -120,7 +121,7 @@ def move_file_to_move_folder(file_path: pathlib.Path) -> None:
while destination_path.exists():
destination_path = move_dir_path / f"{name}_{counter}{ext}"
counter += 1
_ = file_path.rename(destination_path)
_ = shutil.move(file_path, destination_path)
def trash_file(file_path: pathlib.Path) -> None:
"""