ComfyUI Node
Glob Files (Yogurt Nodes)
Use glob pattern to traverse the folder, return the matching file path list
Glob Files (Yogurt Nodes)
- file_paths
◄root_directory►
◄glob_pattern*►
◄sort_filesfalse►
◄sort_reversefalse►
◄glob_modeglob►
◄files_onlyfalse►
◄as_posixfalse►
◄full_pathfalse►
◄resolve_pathfalse►
◄prefix_list►
◄suffix_list►
◄extension_list►
◄extension_is_imagefalse►
◄relativefalse►
CategoryYogurtNodes/IO
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| root_directory | STRING | Root directory path, from which to start searching for files. | |
| glob_pattern | STRING | * | One glob pattern per line, e.g. '*.txt' or '**/*.py'. Empty lines are ignored. |
| sort_files | BOOLEAN | false | Sort the file paths in alphabetical order. |
| sort_reverse | BOOLEAN | false | Sort in descending order. |
| glob_mode | COMBO | glob | glob from left to right, rglob from right to left |
| files_only | BOOLEAN | false | Return only files, exclude directories. |
| as_posix | BOOLEAN | false | Convert the path to a POSIX format. |
| full_path | BOOLEAN | false | Return an absolute version of this path by prepending the current working directory. No normalization or symlink resolution is performed. |
| resolve_path | BOOLEAN | false | Make the path absolute, resolving all symlinks on the way and also normalizing it. |
| prefix_list | STRING | Prefix list, multiple prefixes separated by commas, e.g. 'pre-1,pre-2,pre-3' etc. Case insensitive. If empty, all files will be returned. | |
| suffix_list | STRING | Suffix list, multiple suffixes separated by commas, e.g. 'txt,py,json' etc. Case insensitive. If empty, all files will be returned. | |
| extension_list | STRING | Extension list, multiple extensions separated by commas, e.g. 'txt,py,json' etc. Case insensitive. If empty, all files will be returned. | |
| extension_is_image | BOOLEAN | false | If true, the extension list will be treated as image extensions. |
| relative | BOOLEAN | false | Return paths relative to the root directory. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| file_paths | LIST | — |