ComfyUI Node
File Path Selector From Directory (Buff)
A ComfyUI node in utils with 6 inputs and 1 output.
File Path Selector From Directory (Buff)
- file_path
◄directory_path/tmp/ComfyUI/input►
◄file_typesmp4,mkv,webm►
◄selection_moderandomize►
◄include_subdirectoriesTrue►
◄seed0►
◄cache_duration60►
Categoryutils
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| directory_path | STRING | /tmp/ComfyUI/input | Path to the directory containing files to select from. Can be absolute or relative path. |
| file_types | STRING | mp4,mkv,webm | Comma-separated list of file extensions to include (e.g., 'mp4,jpg,png'). No dots needed. |
| selection_mode | COMBO | randomize | randomize: Pick a random file each time (can be seeded) sequential: Go through files in order, remembering position between sessions |
| include_subdirectories | COMBO | True | When True, searches in subdirectories for matching files. When False, only searches in the specified directory. |
| seedopt | INT | 00–18446744073709550000 | Seed for random selection. Use the same seed to get the same file each time. |
| cache_durationopt | INT | 600–3600 | How long to cache the file list in seconds. 0 disables caching. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| file_path | STRING | — |