v1

latestOpenAPI 3.1.02026-07-17325265.6 KB
Files

Validate directory existence

Check if a directory exists and whether it can be created

post/validate-directory

Request body

pathstring required

Directory path to validate

Example request

{
  "path": "/home/user/new-project"
}

Response

Directory validation result

existsboolean required

Whether the directory exists

isDirectoryboolean

Whether the path is a directory (only set if exists is true)

canCreateboolean

Whether the directory can be created (only set if exists is false)

expandedPathstring required

The expanded path with ~ resolved

errorstring

Error message if path validation failed

Example response

{
  "expandedPath": "/home/user/new-project"
}