# 获取目录

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/fs/dirs:
    post:
      summary: 获取目录
      deprecated: false
      description: ''
      tags:
        - fs
        - fs
        - alist Copy/fs
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                path:
                  type: string
                  title: 路径
                password:
                  type: string
                  title: 密码
                force_root:
                  type: boolean
              x-apifox-orders:
                - path
                - password
                - force_root
            example:
              path: /t
              password: ''
              force_root: false
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          title: 文件夹名
                        modified:
                          type: string
                          title: 修改时间
                      required:
                        - name
                        - modified
                      x-apifox-orders:
                        - name
                        - modified
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  - name: a
                    modified: '2023-07-19T09:48:13.695585868+08:00'
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: fs
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955416-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
