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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| MainFolder | STRING | Main | The root output folder. |
| Date_Subfolder | BOOLEAN | true | If on, creates a subfolder using the selected date_format. |
| Subfolder_A | STRING | First level of custom subfolders. Add more levels by adding a / between them. | |
| Subfolder_B | STRING | Second level of custom subfolders. | |
| manual_name | STRING | Name | Manual base name used when Name Mode is Manual. |
| name_mode | BOOLEAN | false | Manual uses manual_name. Auto uses auto_name. |
| Date | BOOLEAN | true | Include the date placeholder (%date%) in the filename. |
| prefix_1 | STRING | First custom prefix for the filename. | |
| prefix_2 | STRING | Second custom prefix for the filename. | |
| Model | BOOLEAN | false | Include model placeholder (%model_short%) in the filename. |
| Sampler | BOOLEAN | true | Include sampler placeholder (%sampler_name%) in the filename. |
| Scheduler | BOOLEAN | true | Include scheduler placeholder (%scheduler%) in the filename. |
| Seed | BOOLEAN | true | Include the seed placeholder as seed_%seed% in the filename. |
| Steps | BOOLEAN | true | Include the steps placeholder as steps_%steps% in the filename. |
| CFG | BOOLEAN | true | Include the CFG placeholder as CFG_%cfg% in the filename. |
| Labels | STRING | Additional labels to include in the filename. | |
| suffix_1 | STRING | First custom suffix for the filename. | |
| suffix_2 | STRING | Second custom suffix for the filename. | |
| delimiter | STRING | The character used to separate parts of the filename. | |
| max_num_words | INT | 10–32 | Maximum number of words to keep from auto_name. Set to 0 for no limit. |
| date_format | COMBO | Date format used for the dated subfolder output when Date_Subfolder is enabled. | |
| batch_sizeopt | INT | 11–1000 | The batch size for the output. |
| auto_nameopt | STRING | Name | Auto mode base name source. Cropped using max_num_words. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| path_filename | STRING | — |
| date_format | STRING | — |