列目录
开发中GET
/directory{path}最后修改时间: 7 个月前
请求参数
Path 参数
path
string
必需
经过URL Encode的网盘路径
示例值:
%2F
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
响应状态
data
object
必需
parent
string
必需
当前目录对应文件夹的ID
objects
$ref(#/definitions/95455584)[]
文件列表
policy
#/definitions/95455618必需
文件夹的文件存储策略
msg
string
错误信息
示例
{
"code": 0,
"data": {
"parent": "9zh3",
"objects": [
{
"id": "bbTL",
"name": "my_folder",
"path": "/",
"thumb": false,
"size": 0,
"type": "dir",
"date": "2024-05-01T11:19:12.1733916+08:00",
"create_date": "2024-05-01T11:19:12.1733916+08:00",
"source_enabled": false
},
{
"id": "j6hJ",
"name": "yixiangzhilv.com.zone",
"path": "/",
"thumb": false,
"size": 1597,
"type": "file",
"date": "2024-04-30T15:25:46.424+08:00",
"create_date": "2024-05-01T11:05:21.8852154+08:00",
"source_enabled": false
}
],
"policy": {
"id": "z3hJ",
"name": "Default storage policy",
"type": "local",
"max_size": 0,
"file_type": []
}
},
"msg": ""
}
最后修改时间: 7 个月前