ComfyUI Node
List Files From Directory
Lists files from a directory.
List Files From Directory
- filenames
◄directory—►
◄file_list_cap0►
◄file_start_index0►
◄include_subfoldersfalse►
◄valid_extensionsjpg,jpeg,png,webp,gif,tga►
◄sort_method▾►
CategoryLoadAnimAdv/Loaders
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | Absolute or relative path to the image directory. | |
| file_list_capopt | INT | 0 | Maximum amount of files to list out. Zero means no maximum. |
| file_start_indexopt | INT | 0 | Index (zero-based) to start listing files, based on the collected filenames from the directory search. |
| include_subfoldersopt | BOOLEAN | false | Controls whether to recursively search for files within subdirectories. |
| valid_extensionsopt | STRING | jpg,jpeg,png,webp,gif,tga | Comma-delimited list of file extensions to search for. |
| sort_methodopt | COMBO | Controls how to sort the image filename list. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| filenames | STRING | The list of filenames that match the inputs specified. Input nodes that do not support lists of files will be executed one-at-a-time. |