---
title: "ReadFiles"
method: GET
path: "/v1/files/"
tags: ["files"]
---

# ReadFiles

`GET /v1/files/`

List dir/files.

## Query parameters

- `sourcePath` string, required

## Response `200`

OK

- EntityUnixFile[]
  - `content` string
  - `extension` string
  - `gid` integer
  - `group` string
  - `mimeType` string
  - `name` string
  - `owner` string
  - `path` string
  - `permissions` string
  - `size` integer
  - `uid` integer
  - `updatedAt` integer

## Changes

- **2024-12-04** `d7ced1b11534` — 1 warning
  - deleted the `query` request parameter `shouldIncludeFileTree`

[Change history](https://skmtc.dev/goinfinite/apis/osapi/changes/v1/files/get.md)

---

[API](https://skmtc.dev/goinfinite/apis/osapi.md) · [All operations](https://skmtc.dev/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goinfinite/osapi/revisions/29ef3eae8d99/schema)
