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: