> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-partner-nodes-consolidate.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveImageDataSetToFolder - ComfyUI Built-in Node Documentation

> This node saves a list of images to a specified folder inside ComfyUI's output directory.

This node saves a list of images to a specified folder inside ComfyUI's output directory. It writes each image to disk as a PNG file using a configurable filename prefix. This node is deprecated and superseded by existing Save Image nodes, where the target folder can be specified in the filename prefix.

## Inputs

| Parameter         | Description                                                                                            | Data Type | Required | Range                        |
| ----------------- | ------------------------------------------------------------------------------------------------------ | --------- | -------- | ---------------------------- |
| `images`          | List of images to save.                                                                                | IMAGE     | Yes      | N/A                          |
| `folder_name`     | Name of the folder to save images to (inside output directory). Default: "dataset".                    | STRING    | No       | N/A                          |
| `filename_prefix` | Prefix for saved image filenames. Default: "image". Advanced parameter.                                | STRING    | No       | N/A                          |
| `mode`            | Whether to overwrite existing files or increment filenames to avoid overwriting. Default: "overwrite". | COMBO     | No       | "overwrite"<br />"increment" |

**Notes:**

* The `images` input is a list, so multiple images can be saved in a single run.
* The `folder_name`, `filename_prefix`, and `mode` parameters are scalar values; if a list is connected, only the first value from that list is used.
* The `folder_name` must resolve to a location inside ComfyUI's output directory. Values that escape the output directory (for example, paths containing `..` or absolute paths) are rejected with an error.
* In "overwrite" mode, files are saved as `{prefix}_00000.png`, `{prefix}_00001.png`, and so on, replacing any existing files. In "increment" mode, a counter is inserted into the filename so existing files are not overwritten.

## Outputs

This node does not have any outputs. It is an output node that performs a save operation to the filesystem.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SaveImageDataSetToFolder/en.md)

***

**Source fingerprint (SHA-256):** `ee92340ca1581edcfe1cc1d5659ee705ad53425bed6658161a56e6d130680e50`
