⭐ Star Save Folder String
One node that stops your output folder from becoming a dumpster
- path
- dir_only
- filename
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 -
firstputs2026-08-16/at the top of the path,subfoldernests 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, orsuffix, 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_StarNodesthen 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.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| preset_folder | COMBO | None | 10 options: None, Images, Video, Inpaint, Controlnet, Edits, +4 |
| date_folder | BOOLEAN | true | — |
| date_folder_position | COMBO | first | 2 options: first, subfolder |
| custom_folder | STRING | — | |
| custom_subfolder | STRING | — | |
| date_in_filename | COMBO | Off | 3 options: Off, prefix, suffix |
| filename | STRING | Image | — |
| add_timestamp | BOOLEAN | false | — |
| separator | STRING | _ | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| path | STRING | — |
| dir_only | STRING | — |
| filename | STRING | — |