获取文件列表
GET
Tokenheader
api-token<token>32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
path*string绝对路径
showCount?string是否返回目录子项数量,1 返回、0 不返回,默认 0
值于
"1""0"返回目标路径的目录信息与子项列表
application/json- response
path*string绝对路径
title*string目标路径所属目录的名称
type*FileType文件类型
值于
"folder""file"updated_at*string最后修改时间
格式
date-timecreated_at*string创建时间
格式
date-timechildren*array<>count?integer目录子项数量(仅在 showCount 为 1 时存在)
curl -X GET "https://example.com/file/v1/list?path=string"{ "path": "string", "title": "string", "type": "folder", "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "children": [ { "path": "string", "name": "string", "type": "folder", "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "count": 0 } ], "count": 0}
