From d3dff54b04a2a6563ab0979a14bffd3089e26c56 Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 26 Jan 2022 18:49:26 +0700 Subject: [PATCH] update --- filebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filebot.py b/filebot.py index 5a322bd..7ac095c 100644 --- a/filebot.py +++ b/filebot.py @@ -28,7 +28,7 @@ print("Deleting rar, sfv, nfo files...") for root, dirs, files in os.walk(source_path): for dir in dirs: if re.search('sample', dir, re.IGNORECASE) or re.search('proof', dir, re.IGNORECASE): - shutil.rmtree(dir) + shutil.rmtree(os.path.join(root, dir)) for root, dirs, files in os.walk(source_path): for dir in dirs: