list_audio_subfolders
Map an audio folder's subfolder structure with per-folder file counts before scanning, so you can target specific subfolders instead of entire large libraries.
Instructions
List the subfolder structure under a folder — fast, no per-file
metadata work (no duration/BPM/key parsing, no size stat), just
directory names and a cheap audio-file count per folder. Use this
BEFORE scan_audio_folder on a large library (thousands of files):
see the shape of it first (genre/category folders are almost
always real subfolders — "Footsteps/", "Ambience/Wind/",
"Weapons/Gunshots/"), then point scan_audio_folder's path at the
specific subfolder that matters instead of scanning everything.
Args:
path: Absolute folder path to list under.
max_depth: How many levels deep to descend. 1 = immediate
children of path only. Default 2.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_depth | No |