Generic File Saver v1.0 - Akki
Save anything to disk with a versioned, shot-specific filename
- saved_file_path
- text_passthrough
The Generic File Saver v1.0 is the write half of the AkkiNodes file-IO pair. It takes any text string and saves it to disk with a standardized, versioned filename - GenericOutput_1A_2025-07-24_0003.txt - so that every output from every stage lands in an organized, collision-free file structure. In a pipeline that churns out bibles, beat sheets, shot lists, and lookdev prompts, this is what keeps your output/ folder from becoming a landfill.
How it works
You give it a project_path (relative to ComfyUI's output directory), a file_subfolder (default DATA), a shot_name, a filename_prefix (default GenericOutput), and an extension (txt, csv, md, json, or log). It sanitizes the shot name for filename safety, then checks what versions already exist for that exact prefix + shot + date combo and appends the next zero-padded counter. Re-run the same node and you get a new numbered file instead of an overwrite - every stage keeps history, which is what makes the Generic File Loader's "load the latest" trick work.
The naming format matters. It's not decoration: the loader builds its search regex around this exact convention, so if you hand-edit the filename you break the round-trip. Save through this node and the whole loop stays consistent.
Inputs and outputs
Inputs: project_path, text (the content - wire any STRING output in here), file_subfolder, shot_name, filename_prefix, extension.
Two outputs:
saved_file_path- the full path where it landed. Useful for logging or for wiring into other tools.text_passthrough- the original text, unchanged, so this node doesn't break the chain. You can save and keep flowing in one step.
It's also marked as an output node (OUTPUT_NODE = True in the source), which just means ComfyUI treats it as a terminal node in the graph.
Install and gotchas
Pack install: ComfyUI Manager search "AkkiNodes LLM Suite", or git clone https://github.com/routhakash/AkkiNodes-LLM-Suite-for-ComfyUI into custom_nodes, install.bat as admin on Windows, restart.
The failure mode worth knowing: like the loader, it doesn't raise on error - it returns an ERROR: Could not save file. Check console. string in saved_file_path and passes the text through. So if a save silently fails (permissions on the output dir is the usual suspect on Windows), the workflow keeps running and you only find out by checking the path output or the console. Also note paths are anchored to ComfyUI's output folder - a project_path that escapes it with ../ will happily write wherever you point it, which is a foot-gun if you're sloppy with the string.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| project_path | STRING | — | |
| text | STRING | — | |
| file_subfolder | STRING | DATA | — |
| shot_name | STRING | — | |
| filename_prefix | STRING | GenericOutput | — |
| extension | COMBO | 5 options: txt, csv, md, json, log |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| saved_file_path | STRING | — |
| text_passthrough | STRING | — |