File Info
Filesystem API
File Info
Get metadata for a file or directory inside a sandbox.
GET
File Info
Returns metadata about a specific file or directory: its name, full path, type,
and size in bytes. Proxies the envd response status code — returns
404 if the
path does not exist.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Query Parameters
Absolute path of the file or directory to inspect.Example:
/home/user/script.pyResponse
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 | Path not found or sandbox not found |
502 | envd daemon unreachable |
503 | Sandbox has no VM |