---
title: "Get filesystem path info"
method: GET
path: "/instances/{id}/stat"
---

# Get filesystem path info

`GET /instances/{id}/stat`

Returns information about a path in the guest filesystem.
Useful for checking if a path exists, its type, and permissions
before performing file operations.

## Path parameters

- `id` string, required

## Query parameters

- `path` string, required
- `follow_links` boolean

## Response `200`

Path information

- PathInfo
  - `exists` boolean, required — Whether the path exists
  - `is_dir` boolean — True if this is a directory
  - `is_file` boolean — True if this is a regular file
  - `is_symlink` boolean — True if this is a symbolic link (only set when follow_links=false)
  - `link_target` string, nullable — Symlink target path (only set when is_symlink=true)
  - `mode` integer — File mode (Unix permissions)
  - `size` integer — File size in bytes
  - `error` string, nullable — Error message if stat failed (e.g., permission denied). Only set when exists is false due to an error rather than the path not existing.

## Other responses

- `404` — Instance not found
- `409` — Instance not in running state
- `500` — Internal server error

---

[API](https://skmtc.net/kernel/apis/hypeman-api.md) · [All operations](https://skmtc.net/kernel/apis/hypeman-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kernel/hypeman-api/versions/b4642bb950dc/schema)
