Add Folder
The path joiner that keeps your output tree tidy
- string
Add Folder is the smallest piece of the RvTools folder family: it takes a path string and a folder name and joins them with the OS's path separator. That's os.path.join(path, folder_name) in a node. It exists so you can compose paths on the canvas instead of hand-editing a save node's prefix - chain it after Project Folder v2 (or any string path) and you've got a subfolder structure without ever typing a slash yourself.
How it works
Two inputs, one output. path is a wire-forced string (so it must come from another node - a Project Folder v2 output, a filename-prefix node, wherever), and folder_name is a plain widget (default SubFolder). The result is path/folder_name, handed back as a STRING you can feed into a Save Image / Save file node's path or prefix port.
Because it uses os.path.join, the separator is platform-correct - / on Linux/macOS, \ on Windows - which is exactly why you shouldn't just concatenate strings by hand. It also plays nicely with the ./relative/path style that Project Folder v2 emits: ./MyProject/2026-08-16 plus SubFolder gives ./MyProject/2026-08-16/SubFolder.
The inputs that matter
path- the parent path (wire it from a folder or prefix node).folder_name- the subfolder to append. That's the whole node.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2
Restart ComfyUI or use ComfyUI Manager (search "ComfyUI-RvTools_v2"). No models, no extra deps.
Honest take
If you already have Project Folder v2, Add Folder is arguably redundant - that node can build subfolders on its own with its batch-folder option. But there's a clean use: composing an ad-hoc subfolder (like "upscaled" or "test") under an existing dated project path without touching the parent node's settings, or building a path from a dynamic folder name that arrives as a string from elsewhere. One warning: the node doesn't create the directory - it only returns the joined path string, and it doesn't check the path exists. Whatever consumes it (usually a save node) handles creation. And the usual pack notes apply: deprecated in favor of ComfyUI_Eclipse; old v1-repo workflows won't install.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| path | STRING | — | |
| folder_name | STRING | SubFolder | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |