ComfyUI Node
Folder Search (genkai)
Scans a folder using the same inputs and output behavior as Folder Search. When Output_Type is Current file, one result is returned per execution. If Infinite_Loop is enabled, execution continues from the first result immediately after the final result instead of returning an empty string.
Folder Search (genkai)
- output
◄folder_path/►
◄search_mask*.*►
◄output_typefalse►
◄recursivetrue►
◄include_directoriesfalse►
◄return_full_pathfalse►
◄relative_filenamesfalse►
◄infinite_loopfalse►
◄save_output_to►
CategoryGENKAI nodes
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | / | Folder to search for files within |
| search_mask | STRING | *.* | Pattern to match the found files against |
| output_type | BOOLEAN | false | How the output should be returned, ALL files or one file at a time |
| recursive | BOOLEAN | true | Specifies whether subfolders should be scanned as well |
| include_directories | BOOLEAN | false | Specifies whether directories should be included in the results |
| return_full_path | BOOLEAN | false | Specifies whether the full file path should be returned or only the file name and extension |
| relative_filenames | BOOLEAN | false | Return filenames with their parent folder relative to the search directory |
| infinite_loop | BOOLEAN | false | After the last result, continue again from the first result |
| save_output_toopt | STRING | Optional output file to save found files to |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | * | All files found or the current file, based on Output_Type |