ComfyUI Node
Sanitize Filename (Oli)
A ComfyUI node in Oli/utils with 8 inputs and 3 outputs.
Sanitize Filename (Oli)
- prefix
- path
- filename
◄filename►
◄folder►
◄extension►
◄allow_spacestrue►
◄allow_slashtrue►
◄allow_unicodefalse►
◄max_length240►
◄replacement_►
CategoryOli/utils
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| filenameopt | STRING | The filename to sanitize. | |
| folderopt | STRING | The folder path to sanitize. | |
| extensionopt | STRING | File extension (with or without leading dot). | |
| allow_spacesopt | BOOLEAN | true | — |
| allow_slashopt | BOOLEAN | true | Preserve / as path separator in the filename input. |
| allow_unicodeopt | BOOLEAN | false | If disabled, diacritics are transliterated via NFKD: à→a, é→e, ü→u, etc. |
| max_lengthopt | INT | 2400–4096 | Max bytes for the filename component (0 = no limit). Default 240 leaves room for the counter and extension that save nodes typically append. OS limit is 255 bytes. |
| replacementopt | STRING | _ | Character used in place of disallowed characters. Must be a single non-alphanumeric ASCII character; invalid values fall back to _. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| prefix | STRING | — |
| path | STRING | — |
| filename | STRING | — |