Nodes/ComfyUI_StarNodes/⭐ Star Save Folder String
ComfyUI Node

⭐ Star Save Folder String

One node that stops your output folder from becoming a dumpster

By Starnodes2024·Created 2 years ago·Updated 3 days ago· 102
⭐ Star Save Folder String
    • path
    • dir_only
    • filename
    preset_folderNone
    date_foldertrue
    date_folder_positionfirst
    custom_folder
    custom_subfolder
    date_in_filenameOff
    filenameImage
    add_timestampfalse
    separator_

    The name is 90% a lie and the honest 10% is the useful part: StarSaveFolderString doesn't save anything. What it does is build the folder-and-filename string that your actual save node uses, so your outputs stop piling up in ComfyUI/output/ under names like 00001_12345_.png.

    It's a tiny IO utility, the kind of node that looks pointless until the week you're hunting through two thousand files for "that one inpaint pass." You wire its single path output into a Save Image node's filename prefix (or any custom save node that takes a string) and suddenly every render lands in a folder named after what it is, with an optional date layer and a timestamped filename.

    What it builds

    The node composes a path from a few simple fields:

    • preset_folder - pick a category from the dropdown: Images, Video, Inpaint, Controlnet, Edits, Faceswap, Creatures, Backdrops, or None. This becomes the top-level folder.
    • date_folder (on by default) with date_folder_position - first puts 2026-08-16/ at the top of the path, subfolder nests it under the preset. Both are valid organizational religion; pick yours.
    • custom_folder (default ComfyUi) and custom_subfolder - your own base path when the presets don't fit.
    • date_in_filename - Off, prefix, or suffix, for dating inside the filename rather than the folder.
    • filename, add_timestamp, and separator (default _) - the name part and how the pieces glue together.

    So a typical run gives you Images/2026-08-16/faceswap/Portrait_163022.png instead of 00042_.png. That's the whole trick - string assembly. It just happens to be the string-assembly that keeps your hard drive findable.

    Install

    Same story as every node in this pack: ComfyUI_StarBetaNodes is the retired beta repo, and these nodes live in the main ComfyUI_StarNodes repo now. Install that:

    • ComfyUI Manager → search Starnodes → install → restart, or
    • cd ComfyUI/custom_nodes && git clone https://github.com/Starnodes2024/ComfyUI_StarNodes then restart.

    No model downloads, no pip dependencies worth mentioning - it's plain Python string logic.

    Gotchas

    The output is just text, so two things follow. First, the path is relative to wherever your save node resolves paths from - usually ComfyUI's output directory. Don't expect the node to create folders itself; that's the save node's job. Second, if you're on Windows, the separator field defaults to _ for filenames, and folder separators in ComfyUI are forward slashes - those work fine on both platforms, so don't go out of your way to insert backslashes. And if you're not using this with a save node that honors nested prefixes, you'll see nothing change - wire the path output to the right input or it's a very polite no-op.

    Category⭐StarNodes/IO

    Inputs (9)

    NameTypeDefaultDescription
    preset_folderCOMBONone10 options: None, Images, Video, Inpaint, Controlnet, Edits, +4
    date_folderBOOLEANtrue
    date_folder_positionCOMBOfirst2 options: first, subfolder
    custom_folderSTRING
    custom_subfolderSTRING
    date_in_filenameCOMBOOff3 options: Off, prefix, suffix
    filenameSTRINGImage
    add_timestampBOOLEANfalse
    separatorSTRING_

    Outputs (3)

    NameTypeDescription
    pathSTRING
    dir_onlySTRING
    filenameSTRING