Load Any File

LoadAnyFile

Loads any text or binary file and provides the file content as string or base64 string. Additionally tries to load it as a `IMAGE`. And also tries to load any metadata. `filepath` supports ComfyUI's annotated filepaths `[input]` `[output]` or `[temp]`. `filepath` also support glob-pattern expansions `subdir/**/*.png`. Internally uses python's [glob.iglob](https://docs.python.org/3/library/glob.html#glob.iglob). `metadata` calls `exiftool`, if it's installed and available at `PATH`, otherwise uses `PIL.Image.info` as a fallback. For security reason only the following directories are supported: `[input] [output] [temp]`. For performance reasons the number of files are limited to: 1024.

Pack: ComfyUI-outputlists-combiner

custom_nodes.ComfyUI-outputlists-combiner

Inputs (1)

NameTypeRequired
annotated_filepathSTRINGrequired

Outputs (4)

NameType
contentSTRING
imageIMAGE
maskMASK
metadataSTRING