Nodes/ComfyUI-LoadAnim-Adv/List Files From Directory
ComfyUI Node

List Files From Directory

Lists files from a directory.

By SineSwiper·Created 6 months ago·Updated 6 months ago· 0
List Files From Directory
    • filenames
    directory
    file_list_cap0
    file_start_index0
    include_subfoldersfalse
    valid_extensionsjpg,jpeg,png,webp,gif,tga
    sort_method
    CategoryLoadAnimAdv/Loaders

    Inputs (6)

    NameTypeDefaultDescription
    directorySTRINGAbsolute or relative path to the image directory.
    file_list_capoptINT0Maximum amount of files to list out. Zero means no maximum.
    file_start_indexoptINT0Index (zero-based) to start listing files, based on the collected filenames from the directory search.
    include_subfoldersoptBOOLEANfalseControls whether to recursively search for files within subdirectories.
    valid_extensionsoptSTRINGjpg,jpeg,png,webp,gif,tgaComma-delimited list of file extensions to search for.
    sort_methodoptCOMBOControls how to sort the image filename list.

    Outputs (1)

    NameTypeDescription
    filenamesSTRINGThe list of filenames that match the inputs specified. Input nodes that do not support lists of files will be executed one-at-a-time.