add recurse_symlinks parameter to rglob to get tjas in symlinked folders

This commit is contained in:
somepin
2025-11-21 00:31:48 -05:00
parent c597ad0d41
commit 3ee6ce5c3f

View File

@@ -80,7 +80,8 @@ def build_song_hashes(output_dir=Path("cache")):
all_tja_files: list[Path] = [] all_tja_files: list[Path] = []
for root_dir in tja_paths: for root_dir in tja_paths:
root_path = Path(root_dir) root_path = Path(root_dir)
all_tja_files.extend(root_path.rglob("*.tja")) found_tja_files = root_path.rglob("*.tja", recurse_symlinks=True)
all_tja_files.extend(found_tja_files)
global_data.total_songs = len(all_tja_files) global_data.total_songs = len(all_tja_files)
files_to_process = [] files_to_process = []