List Display
A file dropdown that points at a folder you actually choose
- SELECT
ComfyUI's built-in file pickers are stuck to the standard model folders. The moment you want a dropdown of, say, the LoRAs in a project folder you made yourself, you're out of luck - unless you add ListDisplay. It's a Rebalance Pack utility that lists the files in any directory you point it at, filtered by extension, in a normal combo widget with a refresh button. You pick a filename, and it outputs that filename as a string.
Boring on the surface, but it's the missing link in a lot of real workflows: you want a human-friendly way to pick between 40 project LoRAs, or an image to load, without hardcoding paths or reaching for a wildcard. The pack it ships in is nova452's Rebalance Pack - the same one that shipped the Krea 2 conditioning-rebalance node on day one - and this node exists to make its loader family (like LoadImagesBlaze and LoraLoaderBlock) actually pleasant to drive from the UI.
How it works
The node itself is thin: directory_path + ext in, and a filename combo that the frontend fills in. The clever part lives in the pack's server code, which registers a /rebalance_pack/list_files route. The web extension (web/js/list_display.js) queries that route with your directory and extension, gets a sorted file list back, and populates the combo - plus a refresh button that re-queries when you've dropped new files in. When you select one, the node validates that it exists and passes the bare filename out as SELECT (a STRING).
Two details worth knowing. The directory_path can be relative, and relative paths resolve against ComfyUI's base directory - so models/loras style paths work, and so does any absolute path. And the extension filter defaults to safetensors, which makes it a natural little brother to the pack's LoraLoaderBlock: browse a folder of LoRAs, hand the chosen name straight into the loader's combo.
The inputs and outputs that matter
- directory_path - where to look. Absolute, or relative to the ComfyUI base dir.
- ext - file extension filter, default
safetensors. Comma-separate for several (png,jpg). - filename - the combo. Populated automatically; hit refresh if the folder changed.
Output is SELECT, the chosen filename string. That's it - one string out, wire it where a filename string is expected.
Install
It's part of the Rebalance Pack, so it comes with everything else. ComfyUI Manager: search "ComfyUI-Conditioning-Rebalance" (or "Rebalance Pack") and install. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/nova452/ComfyUI-ConditioningKrea2Rebalance
Restart after cloning - the web extension needs the reload to register. No model files, no pip dependencies.
Troubleshooting
The empty-dropdown complaint is the usual one: you type a directory and the combo stays blank. Check that the path actually exists - the route returns an empty list for a bad directory rather than an error, which is polite but confusing. If the folder exists and the list is still empty, check the extension filter (files are matched by extension string). And if you add files mid-session, hit the refresh button - the combo won't notice on its own. One more: the node passes through the filename only, not the full path, so the consumer needs to know where it lives. Keep the directory in sync between ListDisplay and whatever reads the file.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| directory_path | STRING | — | |
| ext | STRING | safetensors | — |
| filename | COMBO | 0 options: |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| SELECT | STRING | — |