From a41f88d6b6b2bc5d1c79a63ae54fab70f39684a6 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 2 Oct 2023 11:54:17 +0200 Subject: [PATCH] fix remove --- commands/tinfoil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/tinfoil.py b/commands/tinfoil.py index 4e2685f..505fc79 100755 --- a/commands/tinfoil.py +++ b/commands/tinfoil.py @@ -78,7 +78,7 @@ def remove(path): to_remove = [] for name in os.listdir(path): - if os.path.isfile(name): + if os.path.isfile(f"{path}/{name}"): id = get_title_shortid(name) if not id: