From efec5add4cc5a7b6ac642b70c665f5e9291c4199 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 2 Oct 2023 11:21:44 +0200 Subject: [PATCH] verbose + fix remove --- commands/tinfoil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/tinfoil.py b/commands/tinfoil.py index e0b32e4..4e2685f 100755 --- a/commands/tinfoil.py +++ b/commands/tinfoil.py @@ -30,6 +30,7 @@ def download(path, file): return try: + print(f"Download {path}/{file}") subprocess.run( ["rclone", "copy", "-P", "-v", f"{remote}:{path}/{file}", f"{path}/"], check=True, @@ -78,11 +79,10 @@ def remove(path): for name in os.listdir(path): if os.path.isfile(name): - print(name) id = get_title_shortid(name) if not id: - to_remove.append(name) + to_remove.append(f"{path}/{name}") if len(to_remove) > 100: print("Too much to delete:")