Add Folder
The plain building block for organized ComfyUI output paths
- path
- PATH
This is the plainest node in ComfyUI-Path-Helper, and that's the whole point of it. Add Folder takes a path you've already got and appends one more folder onto the end of it. That's the entire feature set. No dates, no variable substitution, no options - if you want those, there's an Advanced version for that. This one exists for the common case: you know exactly what the folder should be called, and you just need to build a nested output structure without gluing strings together by hand.
Why bother with a dedicated node for this
Because doing it manually means writing project + "/" + folder in a text concatenation node, and that forward slash is the exact thing that breaks on Windows (which wants backslashes, or at least doesn't error on them the way a naive join can misbehave). The whole pack exists because the author got tired of paths that "work for me" and fall over the moment someone on a different OS opens the workflow. Add Folder routes everything through Python's os.path.join, so the separator is always correct for whatever machine is actually running it. You never see that mechanism - you just get a path that works everywhere.
The inputs and outputs that matter
Two required inputs, both simple:
path- aPATHvalue, the custom type this pack uses to chain builder nodes together. This has to come from somewhere upstream - Create Project Root if this is the first folder, or another Add Folder / Add Folder Advanced if you're nesting deeper.folder_name- a plain string, the name of the folder you're adding at this level."renders","drafts","final"- whatever fits your structure.
The output is another PATH, which means you can chain as many Add Folder nodes as you want to build arbitrarily deep folder structures: project root → client → shoot date → renders, four Add Folder nodes deep if that's what you need. Nothing here is a STRING yet - that conversion happens later, at an Add File Name Prefix node, which is the exit point from PATH back into something SaveImage can actually use.
How to install it
ComfyUI Manager: search ComfyUI-Path-Helper, install, restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/Billius-AI/ComfyUI-Path-Helper
then restart ComfyUI. It's plain Python standard library underneath - no pip requirements, no model downloads, nothing to configure. It'll be usable the moment ComfyUI finishes reloading.
Common issues & troubleshooting
I get an error or nothing happens when I wire this straight into SaveImage. That's expected - Add Folder outputs PATH, and SaveImage's filename_prefix input wants a plain string. You need an Add File Name Prefix node somewhere downstream to make that conversion; Add Folder alone never terminates a chain.
My folder names have odd characters and something looks wrong in the output. This node doesn't sanitize the string you give it - whatever you type in folder_name goes straight into the path. If you're pulling that name from somewhere dynamic (a prompt, a filename), keep it to characters your OS's filesystem actually allows, the same rule that applies to any manually typed folder name.
I wanted date-stamped or dynamically formatted folders and this doesn't do that. Right - that's deliberately not what this node does. Reach for Add Folder Advanced instead, which adds a datetime option and {}-style variable formatting on top of the same basic append behavior. Keep this plain version for the parts of your path structure that never change between runs.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| path | PATH | — | |
| folder_name | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| PATH | PATH | — |