---
title: "GET /api/cephfs/{fs_id}/ls_dir"
method: GET
path: "/api/cephfs/{fs_id}/ls_dir"
tags: ["Cephfs"]
---

# GET /api/cephfs/{fs_id}/ls_dir

`GET /api/cephfs/{fs_id}/ls_dir`

List directories of specified path.
        :param fs_id: The filesystem identifier.
        :param path: The path where to start listing the directory content.
        Defaults to '/' if not set.
        :type path: str | bytes
        :param depth: The number of steps to go down the directory tree.
        :type depth: int | str
        :return: The names of the directories below the specified path.
        :rtype: list

## Path parameters

- `fs_id` string, required

## Query parameters

- `path` string
- `depth` integer

## Response `200`

OK

- object

## Other responses

- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

---

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