Please bring an option, to name generated files differently and really uniquely with date- and timecodes in the filename.
Instead of an ever increasing count like for example ComfyUI_00381_.mp4 / then 00382 and so on,
I want to have the option, that the files will be named like ComfyUI_12-31-2025_17-35-23.mp4
So actually ComfyUI_MM-DD-YYYY_HH-MM-SS.mp4 with date and time instead of an increasing count.
It can also be shorter without the “-” in between.
The increasing number is an issue for my workflows, so I need really unique numbers that are not colliding.
When I sort the generated files while still new files are being generated, the count will be reset to the highest value that is still in the folder and even start at 0 again if the folder is empty.
This causes several filenames to be generated multiple times and I do get filename collisions every single time.
It’s the worst when some files are landing within the same folder with mixed stuff, that have 80-90% the same filenames when copying newly generated files.
Filenames with date- and timecodes offer unique numbers and are still some sort of increasing count, that will never collide with each other.
Thank you very much!
Hey pumpkinbutter
You can already do that in the save file nodes. ComfyUI supports place holders. For example, if you use this text formatting tokens:
output_%Y-%m-%d_%H-%M-%S
you would end in
output_2026-01-01_09-37-42_00001.png
you can also use seed to name unique filenames, for example in wan 2.2 I2v i have more output because i want to save the clip, the last frame for an eventually extension of the clip and a text file with the prompt i used for this clip, so i can generate more clip at once and then choose later which one is better or not, to not confuse all the files in the output folder i use this method:
if you name an output with “/” you can save in subfolders of output (example: “Comfy/stablediffusion” will results in an output like this: output/Comfy/stablediffusion_0001.jpg)
so i’m using a custom node named “something to string” (it’s part of kjnodes) to connect the seed from the seed generator. this node also includes a prefix and a suffix function, it’s really helpful, so in this way i have a subfolder of output called WAN2.2 in this folder i create a new subfolder for every seed, so they are unique and in every seed folder i got clip, last frame, text with prompt output.
ANOTHER tip i can give you is to always rename the save output for every workflow you are using with a subfolder don’t leave the default “Comfy” for each workflow, for example, if you use stable diffusion to generate immage rename the save output in SD/Comfy so the output will land in a subfolder SD inside output and don’t mix up with stuff generated with QWEN image edit for example. and rename QWEN output with QWEN/somthing to have all the qwen edit inside a subfolder named QWEN… and so on…
let me know if you need more explanations 