MCPcopy Create free account
hub / github.com/FunAudioLLM/ThinkSound / fast_scandir

Function fast_scandir

ThinkSound/data/dataset.py:28–56  ·  view source on GitHub ↗

very fast `glob` alternative. from https://stackoverflow.com/a/59803793/4259243

(
    dir:str,  # top-level directory at which to begin scanning
    ext:list,  # list of allowed file extensions,
    #max_size = 1 * 1000 * 1000 * 1000 # Only files < 1 GB
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

get_audio_filenamesFunction · 0.85
load_data_urlsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected