Files get overwritten when trying to save into subfolders
It seems that using filename_prefix with a / character to separate into multiple subfolders is not working (it does work on the vanilla Save Image node). Ideally, when setting an output folder via the S3_OUTPUT_DIR env var, you should also be able to select subfolders when checking the counter.
What happens today is that the file is ALWAYS written as {outputDir}/{prefix}_00001.png. The prefix DOES work, since the file is created in the subfolder, however, the counter is ALWAYS 00001 and thus, is always replaced.
To Reproduce
Create any workflow with a Save Image to S3 node and add a / character to filename_prefix, such as example/ComfyUI. For every workflow you run, the name will ALWAYS be {outputDir}/example/ComfyUI_00001.png (the file contains the output of the last workflow run).
Expected behavior
When creating the workflow under "To Reproduce", I would expect the node to create files under {outputDir}/example/ComfyUI, meaning they have keys like {outputDir}/example/ComfyUI_000001.png, {outputDir}/example/ComfyUI_000002.png, {outputDir}/example/ComfyUI_000003.png, {outputDir}/example/ComfyUI_000004.png and so on.
I hope this can get fixed soon. If needed, I can create a PR @TemryL .
Files get overwritten when trying to save into subfolders
It seems that using
filename_prefixwith a/character to separate into multiple subfolders is not working (it does work on the vanilla Save Image node). Ideally, when setting an output folder via theS3_OUTPUT_DIRenv var, you should also be able to select subfolders when checking the counter.What happens today is that the file is ALWAYS written as
{outputDir}/{prefix}_00001.png. The prefix DOES work, since the file is created in the subfolder, however, the counter is ALWAYS 00001 and thus, is always replaced.To Reproduce
Create any workflow with a Save Image to S3 node and add a
/character tofilename_prefix, such asexample/ComfyUI. For every workflow you run, the name will ALWAYS be{outputDir}/example/ComfyUI_00001.png(the file contains the output of the last workflow run).Expected behavior
When creating the workflow under "To Reproduce", I would expect the node to create files under
{outputDir}/example/ComfyUI, meaning they have keys like{outputDir}/example/ComfyUI_000001.png,{outputDir}/example/ComfyUI_000002.png,{outputDir}/example/ComfyUI_000003.png,{outputDir}/example/ComfyUI_000004.pngand so on.I hope this can get fixed soon. If needed, I can create a PR @TemryL .