Nodes/ComfyUI-Buff-Nodes/File Path Selector From Directory (Buff)
ComfyUI Node

File Path Selector From Directory (Buff)

A ComfyUI node in utils with 6 inputs and 1 output.

By BuffMcBigHuge·Created about a year ago·Updated 2 months ago· 2
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)

    NameTypeDefaultDescription
    directory_pathSTRING/tmp/ComfyUI/inputPath to the directory containing files to select from. Can be absolute or relative path.
    file_typesSTRINGmp4,mkv,webmComma-separated list of file extensions to include (e.g., 'mp4,jpg,png'). No dots needed.
    selection_modeCOMBOrandomizerandomize: Pick a random file each time (can be seeded) sequential: Go through files in order, remembering position between sessions
    include_subdirectoriesCOMBOTrueWhen True, searches in subdirectories for matching files. When False, only searches in the specified directory.
    seedoptINT00–18446744073709550000Seed for random selection. Use the same seed to get the same file each time.
    cache_durationoptINT600–3600How long to cache the file list in seconds. 0 disables caching.

    Outputs (1)

    NameTypeDescription
    file_pathSTRING