it's working!?

This commit is contained in:
maxDorninger
2025-04-27 00:14:19 +02:00
parent 33e05a93a3
commit 09fb54f980
10 changed files with 63 additions and 29 deletions

View File

@@ -22,3 +22,9 @@ def list_files_recursively(path: Path = Path(".")) -> list[Path]:
def get_torrent_filepath(torrent: Torrent):
return BasicConfig().torrent_directory / torrent.title
def import_file(target_file: Path, source_file: Path):
if target_file.exists():
target_file.unlink()
target_file.hardlink_to(source_file)