Skip to main content
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

string
required
The sandbox identifier. Format: sbx-<8 chars>.

Query Parameters

string
required
Absolute path of the file or directory to inspect.Example: /home/user/script.py

Response

string
Filename or directory name (not the full path).
string
Full absolute path inside the sandbox.
string
Entry type: "file", "dir", or "symlink".
integer
Size in bytes. 0 for directories.

Example

Response

Error Responses