---
title: "List files"
method: GET
path: "/file"
---

# List files

`GET /file`

List files and directories in a specified path.

## Query parameters

- `directory` string
- `workspace` string
- `path` string, required

## Response `200`

Files and directories

- FileNode[]
  - `name` string, required
  - `path` string, required
  - `absolute` string, required
  - `type` 'file' | 'directory', required
  - `ignored` boolean, required

---

[API](https://skmtc.net/kaaass/apis/opencode.md) · [All operations](https://skmtc.net/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaaass/opencode/versions/8bb9a15bd144/schema)
