List Directory
Filesystem
List Directory
List entries of a workspace directory.
GET
List Directory
Overview
Returns the immediate children of a workspace directory. Pass an emptypath (or omit it) to list the workspace root. The listing is not recursive — use GET /fs/zip to get the full tree as an archive.
Path Parameters
Browser session ID (UUID).
Query Parameters
Workspace-relative directory path. Empty or omitted lists the workspace root.
Example Request
Response
Success Response (200)
The listed workspace-relative directory path.
Entries in the directory. Each entry contains:
name(string) — basename of the entry.path(string) — workspace-relative path of the entry.type(string) — one offile,dir,symlink,other.size(integer) — size in bytes (0 for directories).mode(integer) — Unix mode.mtime(string) — last modified timestamp (ISO 8601).
Error Responses
| Status | Description |
|---|---|
400 | Invalid path. |
401 | Unauthorized — invalid or missing API key. |
404 | Session or directory not found. |