ComfyUI Node
Path Sanitizer
A ComfyUI node in utils/string with 6 inputs and 1 output.
Path Sanitizer
- sanitized_path
◄input_string►
◄replacement_char_►
◄max_length255►
◄lowercasefalse►
◄strip_spacesfalse►
◄collapse_replacementtrue►
Categoryutils/string
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| input_string | STRING | The string to sanitize for filesystem use | |
| replacement_charopt | STRING | _ | Character to replace invalid characters with |
| max_lengthopt | INT | 2551–255 | Maximum length of the sanitized path component |
| lowercaseopt | BOOLEAN | false | Convert the result to lowercase |
| strip_spacesopt | BOOLEAN | false | Remove all spaces from the result |
| collapse_replacementopt | BOOLEAN | true | Collapse consecutive replacement characters into one |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| sanitized_path | STRING | — |