Nodes/AUN ComfyUI Nodes/Path Filename V2
ComfyUI Node

Path Filename V2

Recommended image path/filename builder for new workflows. Returns path_filename plus date_format, and includes manual/auto naming controls for generating a file path and filename from various components and placeholders, when saving images.

By loz2754·Created 7 months ago·Updated about a month ago· 4
Path Filename V2
    • path_filename
    • date_format
    MainFolderMain
    Date_Subfoldertrue
    Subfolder_A
    Subfolder_B
    manual_nameName
    name_modefalse
    Datetrue
    prefix_1
    prefix_2
    Modelfalse
    Samplertrue
    Schedulertrue
    Seedtrue
    Stepstrue
    CFGtrue
    Labels
    suffix_1
    suffix_2
    delimiter
    max_num_words1
    date_format
    batch_size1
    auto_nameName
    CategoryAUN Nodes/File Management

    Inputs (23)

    NameTypeDefaultDescription
    MainFolderSTRINGMainThe root output folder.
    Date_SubfolderBOOLEANtrueIf on, creates a subfolder using the selected date_format.
    Subfolder_ASTRINGFirst level of custom subfolders. Add more levels by adding a / between them.
    Subfolder_BSTRINGSecond level of custom subfolders.
    manual_nameSTRINGNameManual base name used when Name Mode is Manual.
    name_modeBOOLEANfalseManual uses manual_name. Auto uses auto_name.
    DateBOOLEANtrueInclude the date placeholder (%date%) in the filename.
    prefix_1STRINGFirst custom prefix for the filename.
    prefix_2STRINGSecond custom prefix for the filename.
    ModelBOOLEANfalseInclude model placeholder (%model_short%) in the filename.
    SamplerBOOLEANtrueInclude sampler placeholder (%sampler_name%) in the filename.
    SchedulerBOOLEANtrueInclude scheduler placeholder (%scheduler%) in the filename.
    SeedBOOLEANtrueInclude the seed placeholder as seed_%seed% in the filename.
    StepsBOOLEANtrueInclude the steps placeholder as steps_%steps% in the filename.
    CFGBOOLEANtrueInclude the CFG placeholder as CFG_%cfg% in the filename.
    LabelsSTRINGAdditional labels to include in the filename.
    suffix_1STRINGFirst custom suffix for the filename.
    suffix_2STRINGSecond custom suffix for the filename.
    delimiterSTRING The character used to separate parts of the filename.
    max_num_wordsINT10–32Maximum number of words to keep from auto_name. Set to 0 for no limit.
    date_formatCOMBODate format used for the dated subfolder output when Date_Subfolder is enabled.
    batch_sizeoptINT11–1000The batch size for the output.
    auto_nameoptSTRINGNameAuto mode base name source. Cropped using max_num_words.

    Outputs (2)

    NameTypeDescription
    path_filenameSTRING
    date_formatSTRING