---
title: "获取子目录列表"
method: GET
path: "/scan/directories"
tags: ["扫描管理"]
---

# 获取子目录列表

`GET /scan/directories`

返回指定路径下的一级子目录列表，用于目录树懒加载。path 为空时返回音乐根目录下的子目录

## Query parameters

- `path` string

## Response `200`

子目录列表

- object

## Other responses

- `400` — 无效的路径
- `500` — 读取目录失败

---

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