Make Directory
Filesystem API
Make Directory
Create a directory (and all parent directories) inside a sandbox.
POST
Make Directory
Creates a directory at the specified path, including all necessary parent
directories. Equivalent to
mkdir -p. If the directory already exists, the
operation succeeds silently.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Request Body
Absolute path of the directory to create inside the sandbox. All intermediate
directories are created automatically.Example:
"/home/user/data/output/results"Unix user to own the created directory. Defaults to the envd default user.
Response
Returns the envd mkdir confirmation as a JSON object.Example
Error Responses
| Status | Cause |
|---|---|
400 | Invalid request body |
401 | Missing or invalid API key |
404 | Sandbox not found |
502 | envd daemon unreachable |
503 | Sandbox has no VM |