391230fdecdd819c1481c5f98b8a78ace16fc4d4
ComfyUI-FilePathsFromFolder
A simple ComfyUI custom node pack for loading and selecting files from folders.
Nodes
LoadFilePathsFromFolder
Scans a folder for files matching a specific extension pattern.
Parameters:
folder_path: Path to the folder to scanextension: File extension pattern (e.g., ".png", ".jpg", "*.txt")
Outputs:
filepaths: Line-break separated list of full file pathsfilenames: Line-break separated list of filenames without extensionscount: Number of files matched
GetPathByIndex
Selects a specific file from the lists by index.
Inputs:
filenames: Line-break separated filenames (from LoadFilePathsFromFolder)filepaths: Line-break separated filepaths (from LoadFilePathsFromFolder)
Parameters:
index: Index of the file to select (0-based)
Outputs:
filename: Selected filenamefilepath: Selected filepath
Installation
Place this folder in your ComfyUI custom_nodes directory and restart ComfyUI.
Languages
Python
100%