ComfyUI Node
PSN Path Validator
Validate and construct a full file path within allowed roots.
PSN Path Validator
- full_path
- is_valid
- reason
◄directory~/ComfyUI/models►
◄filename►
◄create_dirsfalse►
◄allowed_roots~/ComfyUI/models►
CategoryParametric/Prompts
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | ~/ComfyUI/models | Directory. Default ~/ComfyUI/models. |
| filename | STRING | Filename. | |
| create_dirsopt | BOOLEAN | false | Create dirs. Default False. |
| allowed_rootsopt | STRING | ~/ComfyUI/models | Allowed roots. Default ~/ComfyUI/models. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| full_path | STRING | — |
| is_valid | BOOLEAN | — |
| reason | STRING | — |