Nodes/ComfyUI_LC123_nodes/LC Advanced Folder πŸ“‚
ComfyUI Node

LC Advanced Folder πŸ“‚

Put your saves where you actually want them

By lonecatone23Β·Created 2 months agoΒ·Updated about 12 hours agoΒ· 19
LC Advanced Folder πŸ“‚
    • filename
    • path
    β—„folderMetaDataβ–Ί
    β—„prefixTestβ–Ί
    β—„suffixβ–Ί
    β—„timestamp%Y-%m-%dβ–Ί
    β—„path_separatorautoβ–Ί
    β—„include_prefix_in_pathtrueβ–Ί

    The native Save Image node has one field - filename_prefix - and that's where every "I have 4,000 images and no idea which run they're from" story begins. Some saver nodes (the "Image Saver Simple" family, and a few others) split that into a separate path and filename, and once you've used that split you don't want to go back. LC Advanced Folder is the little node that feeds those savers a properly built path and filename pair, with timestamps, so your output lands in folders you can actually navigate.

    It's a pure string-builder with no image input, which is the first thing to internalize: nothing touches pixels here. You give it a folder (the root or subfolder under the saver's output path - default MetaData), a prefix (default Test, used in both the path segment and the filename), an optional suffix, and a timestamp format chosen from a dropdown. Then it hands back two strings: path and filename, ready to wire into the saver.

    The source shows the typical shape it's going for:

    path:     metadata\prefix_timestamp\
    filename: prefix_suffix_timestamp
    

    So folder=MetaData, prefix=anime, suffix=flux, timestamp %Y-%m-%d gives you metadata\anime_2026-08-26\ with anime_flux_2026-08-26 as the filename. Timestamp choices run from none up through %Y-%m-%d-%H%M%S - if you batch a lot, you want the seconds-level one so every image is uniquely named.

    Two settings matter more than the rest. path_separator is auto by default (uses your OS's separator), but you can force Windows backslashes or Linux/Mac slashes - the auto setting gets it right, and the manual override exists for when you're generating a path to hand to a node that runs on a different platform. And include_prefix_in_path (on by default) controls whether the prefix goes into the folder name or just the filename. Turn it off and your path is just folder\, with only the timestamp in the folder, which is the layout you want when a single folder should hold one day's output.

    The whole node sanitizes the strings - illegal path characters become _, trailing slashes get stripped - so you can't accidentally produce a path that makes the saver throw. That's the "advanced" in the name, and it's also the main practical difference from the pack's simpler LC Easy Folder, which only builds a filename_prefix for the native Save Image.

    Where people get caught: wiring these strings into a saver that doesn't actually accept split path + filename. If the saver only has filename_prefix, use LC Easy Folder instead. And if you set the timestamp to none and batch two images in a run, they'll collide on the filename - that's on you, not the node.

    Same install as everything else in LC123 - Manager, search "LC123", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/lonecatone23/ComfyUI_LC123_nodes
    

    Restart, no pip extras. Ten seconds of setup, and your output folder finally makes sense.

    CategoryLC123/io

    Inputs (6)

    NameTypeDefaultDescription
    folderSTRINGMetaDataRoot folder / subfolder under the saver output path.
    prefixSTRINGTestUsed in both the path segment and the filename.
    suffixSTRINGFilename suffix (optional).
    timestampCOMBO%Y-%m-%dTimestamp format. Choose none to omit.
    path_separatorCOMBOautoPath separator style. auto uses the OS default.
    include_prefix_in_pathBOOLEANtrueON: path = folder\prefix_timestamp\. OFF: path = folder\

    Outputs (2)

    NameTypeDescription
    filenameSTRINGβ€”
    pathSTRINGβ€”