---
title: "Stat a file in a volume"
method: GET
path: "/files/stat"
tags: ["pv"]
---

# Stat a file in a volume

`GET /files/stat`

Return metadata of base_path/rel_path; returns 200 with exists=false if not found

## Query parameters

- `base_path` string, required
- `rel_path` string, required

## Response `200`

OK

- PkgServerVolumefsStatResponse
  - `exists` boolean
  - `mime` string
  - `modified_at` string
  - `path` string
  - `size` integer

---

[API](https://skmtc.dev/tencentblueking/apis/untitled-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/untitled-api/revisions/a12b0f392336/schema)
