Nodes/ComfyUI-MakkiTools/get_folder_info(mki-获取文件夹文件信息)
ComfyUI Node

get_folder_info(mki-获取文件夹文件信息)

Get information about files in a folder. 获取文件夹中文件的信息。

By MakkiShizu·Created about a year ago·Updated 6 months ago· 9
get_folder_info(mki-获取文件夹文件信息)
    • output_string
    • output_list
    • nth_item
    • tree_structure
    • file_count
    • has_files
    • error_message
    folder_path
    file_index1
    output_full_pathfalse
    include_subfoldersfalse
    file_filter*
    file_typesall
    sort_byname
    sort_orderascending
    limit0
    regex_filter
    CategoryMakkiTools

    Inputs (10)

    NameTypeDefaultDescription
    folder_pathSTRING要扫描的文件夹路径,例如 'C:/Users/MyUser/Documents' 或 '/home/user/documents' The folder path to scan, e.g. 'C:/Users/MyUser/Documents' or '/home/user/documents'
    file_indexINT11–1000要获取的第几个文件名(按名称排序),从1开始计数 The index of the file to get (sorted by name), counting from 1
    output_full_pathBOOLEANfalse如果为True,输出完整路径;否则只输出文件名 If True, output full path; otherwise output only filename
    include_subfoldersBOOLEANfalse是否包含子文件夹中的文件 Whether to include files in subfolders
    file_filterSTRING*文件筛选器,例如 '*.txt' 或 'image*.png' File filter, e.g. '*.txt' or 'image*.png'
    file_typesCOMBOall文件类型筛选 File type filter
    sort_byCOMBOname排序方式 Sort method
    sort_orderCOMBOascending排序顺序 Sort order
    limitINT0限制返回的文件数量,0表示无限制 Limit the number of files returned, 0 means no limit
    regex_filterSTRING正则表达式筛选,例如 '^image.*\.png$' Regular expression filter, e.g. '^image.*\.png$'

    Outputs (7)

    NameTypeDescription
    output_stringSTRING
    output_listLIST
    nth_itemSTRING
    tree_structureSTRING
    file_countINT
    has_filesBOOLEAN
    error_messageSTRING