ComfyUI Node
get_folder_info(mki-获取文件夹文件信息)
Get information about files in a folder. 获取文件夹中文件的信息。
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)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | 要扫描的文件夹路径,例如 'C:/Users/MyUser/Documents' 或 '/home/user/documents' The folder path to scan, e.g. 'C:/Users/MyUser/Documents' or '/home/user/documents' | |
| file_index | INT | 11–1000 | 要获取的第几个文件名(按名称排序),从1开始计数 The index of the file to get (sorted by name), counting from 1 |
| output_full_path | BOOLEAN | false | 如果为True,输出完整路径;否则只输出文件名 If True, output full path; otherwise output only filename |
| include_subfolders | BOOLEAN | false | 是否包含子文件夹中的文件 Whether to include files in subfolders |
| file_filter | STRING | * | 文件筛选器,例如 '*.txt' 或 'image*.png' File filter, e.g. '*.txt' or 'image*.png' |
| file_types | COMBO | all | 文件类型筛选 File type filter |
| sort_by | COMBO | name | 排序方式 Sort method |
| sort_order | COMBO | ascending | 排序顺序 Sort order |
| limit | INT | 0 | 限制返回的文件数量,0表示无限制 Limit the number of files returned, 0 means no limit |
| regex_filter | STRING | 正则表达式筛选,例如 '^image.*\.png$' Regular expression filter, e.g. '^image.*\.png$' |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| output_string | STRING | — |
| output_list | LIST | — |
| nth_item | STRING | — |
| tree_structure | STRING | — |
| file_count | INT | — |
| has_files | BOOLEAN | — |
| error_message | STRING | — |