From 94631d131f0b317ffd3c41a80e88816755b0d3c5 Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Sun, 6 Apr 2025 06:47:41 -0400 Subject: [PATCH] python glob is annoying --- replace_nfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replace_nfo.py b/replace_nfo.py index 080c2b7..6bfc793 100755 --- a/replace_nfo.py +++ b/replace_nfo.py @@ -27,7 +27,7 @@ def update_target_file(source_tree, target_tree): def process_files(source_dir, target_dir): """Process all .nfo files in source_dir and update matching files in target_dir.""" source_files = glob.glob(os.path.join(source_dir, "*.nfo")) - target_files = re.sub(r'(\[|\])', r'[\1]', target_files) + target_dir = re.sub(r'(\[|\])', r'[\1]', target_dir) target_files = glob.glob(os.path.join(target_dir, "*.nfo")) for src_file in source_files: