ComfyUI Node

ShowFileNames

ShowFileNames, the Pack's One-Button Text Dump

By adbrasi·Created 3 years ago·Updated 2 years ago· 7
ShowFileNames
  • file_names
  • STRING

It's the pack's "show me what happened" node

In this pack's example workflow there's a two-node graph: DownloadLinkChecker yanks a numbered run of LoRA checkpoints off Hugging Face, and ShowFileNames sits on its LIST output so you can actually read what landed. That's the whole job. It takes a list of filenames, joins them into one newline-separated text blob, and displays it in a text panel in the UI. Nothing more, nothing less.

What it actually is

ShowFileNames is what ComfyUI calls an output node - the kind that terminates a branch and renders something in the UI rather than passing pixels onward. The show_file_names function takes your LIST, does "\n".join(file_names), and returns the result both as a UI text widget and as a STRING on its output socket.

That second half is quietly the useful part. The node is a LIST→STRING converter with a display bolted on. So if you have a LIST of names or paths and you need them as one string (say, to save a manifest or hand to a text-handling node), this does it.

The one input

  • file_names - a LIST of strings, the same type DownloadLinkChecker outputs.

Worth knowing: "LIST" isn't one of ComfyUI's core types. It's a type name this pack declares, so the socket only matches other nodes that output LIST - in practice that's DownloadLinkChecker in this pack, plus a few utility packs that happen to use the same type string. You can't feed it a string, an image, or anything else; if the socket won't connect, that's why.

Where you'd reach for it

  • Right after DownloadLinkChecker, to confirm which checkpoints actually made it to disk - especially since that node can silently return an empty list if its OUTPUT folder doesn't exist. ShowFileNames makes the silence visible.
  • As a debugging end-cap on any node that returns a list of file paths, so you can see what a batch produced without hunting through folders.
  • As a LIST→STRING conversion when you need filenames as one block of text.

Install

Same as the whole pack: search "ComfyUI-TrashNodes-DownloadHuggingface" in ComfyUI Manager, or clone it into ComfyUI/custom_nodes/:

cd ComfyUI/custom_nodes
git clone https://github.com/adbrasi/ComfyUI-TrashNodes-DownloadHuggingface

then restart ComfyUI. No pip dependencies at all - it's pure stdlib Python, so nothing extra can break on install.

Gotchas

If the text panel comes up empty, the list you fed it was empty - the node doesn't invent anything. And remember the output is a single newline-joined string, not a row of separate STRING outputs; if you want each name on its own socket, you're looking for a list-splitting node instead. It's a one-trick utility from a hobbyist pack, but for "what did my download node just do," it's exactly the right trick.

Categoryutils

Inputs (1)

NameTypeDefaultDescription
file_namesLIST

Outputs (1)

NameTypeDescription
STRINGSTRING