mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 18:25:35 +02:00
it's working!?
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user