List Directory
Filesystem API
List Directory
List the entries of a directory inside a sandbox.
GET
List Directory
Returns the immediate children (files and subdirectories) of the specified
directory path. Does not recurse into subdirectories.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Query Parameters
Absolute path of the directory to list inside the sandbox.Example:
/home/userResponse
Returns an array ofEntryInfo objects, one per directory entry.
Entry filename or directory name (not the full path).
Full absolute path inside the sandbox.
Entry type:
"file", "dir", or "symlink".Size in bytes.
0 for directories.Example
Response
Error Responses
| Status | Cause |
|---|---|
401 | Missing or invalid API key |
404 | Sandbox not found |
502 | envd daemon unreachable |
503 | Sandbox has no VM |