Nodes/Parametric Studio/PSN Path Validator
ComfyUI Node

PSN Path Validator

Validate and construct a full file path within allowed roots.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN Path Validator
    • full_path
    • is_valid
    • reason
    ◄directory~/ComfyUI/models►
    ◄filename►
    ◄create_dirsfalse►
    ◄allowed_roots~/ComfyUI/models►
    CategoryParametric/Prompts

    Inputs (4)

    NameTypeDefaultDescription
    directorySTRING~/ComfyUI/modelsDirectory. Default ~/ComfyUI/models.
    filenameSTRINGFilename.
    create_dirsoptBOOLEANfalseCreate dirs. Default False.
    allowed_rootsoptSTRING~/ComfyUI/modelsAllowed roots. Default ~/ComfyUI/models.

    Outputs (3)

    NameTypeDescription
    full_pathSTRING—
    is_validBOOLEAN—
    reasonSTRING—