ComfyUI Node

Add Folder

The path joiner that keeps your output tree tidy

By r-vage·Created about a year ago·Updated 5 months ago· 23
Add Folder
    • string
    path
    folder_nameSubFolder

    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.

    Category🫦 RvTools II/ Folder

    Inputs (2)

    NameTypeDefaultDescription
    pathSTRING
    folder_nameSTRINGSubFolder

    Outputs (1)

    NameTypeDescription
    stringSTRING