Skip to content

fix: glob uses ** wildcard without recursive=True - #17

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA:mainfrom
andrewwhitecdw:bugfix/parse-libritts-63a7d2fc
Open

fix: glob uses ** wildcard without recursive=True#17
andrewwhitecdw wants to merge 1 commit into
NVIDIA:mainfrom
andrewwhitecdw:bugfix/parse-libritts-63a7d2fc

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Problem

fix: glob uses ** wildcard without recursive=True

Fix

Replace:

    wav_list = sorted(
        [
            path.replace(data_root, "")[1:]
            for path in glob.glob(os.path.join(data_root, data_type, "**/**/*.wav"))
        ]
    )

with:

    wav_list = sorted(
        [
            path.replace(data_root, "")[1:]
            for path in glob.glob(
                os.path.join(data_root, data_type, "**/**/*.wav"), recursive=True
            )
        ]
    )

Files changed

  • filelists/LibriTTS/parse_libritts.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review July 28, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant