Nodes/Genkai-ComfyUI-Nodes/Folder Search (genkai)
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.

By GENKAIx·Created 13 days ago·Updated about 12 hours ago· 9
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)

    NameTypeDefaultDescription
    folder_pathSTRING/Folder to search for files within
    search_maskSTRING*.*Pattern to match the found files against
    output_typeBOOLEANfalseHow the output should be returned, ALL files or one file at a time
    recursiveBOOLEANtrueSpecifies whether subfolders should be scanned as well
    include_directoriesBOOLEANfalseSpecifies whether directories should be included in the results
    return_full_pathBOOLEANfalseSpecifies whether the full file path should be returned or only the file name and extension
    relative_filenamesBOOLEANfalseReturn filenames with their parent folder relative to the search directory
    infinite_loopBOOLEANfalseAfter the last result, continue again from the first result
    save_output_tooptSTRINGOptional output file to save found files to

    Outputs (1)

    NameTypeDescription
    output*All files found or the current file, based on Output_Type