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:")