mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
add recurse_symlinks parameter to rglob to get tjas in symlinked folders
This commit is contained in:
@@ -80,7 +80,8 @@ def build_song_hashes(output_dir=Path("cache")):
|
||||
all_tja_files: list[Path] = []
|
||||
for root_dir in tja_paths:
|
||||
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)
|
||||
files_to_process = []
|
||||
|
||||
Reference in New Issue
Block a user