跳到主要内容

获取文件列表

GET/file/list

请求

名称类型必填描述
pathstring绝对路径

响应

名称类型描述
pathstring绝对路径
titlestring目标路径所属目录的名称
namestring文件或目录名称
typestring<'folder' | 'file'>文件类型
updated_atstring最后修改时间
created_atstring创建时间
childrenobject[]成员,即下级内容(注:成员名称字段均为 name
示例
{
"path": "/arcadia",
"title": "arcadia",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00",
"children": [
{
"path": "/arcadia/config",
"name": "config",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00"
},
{
"path": "/arcadia/log",
"name": "log",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00"
},
{
"path": "/arcadia/raw",
"name": "raw",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00"
},
{
"path": "/arcadia/repo",
"name": "repo",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00"
},
{
"path": "/arcadia/scripts",
"name": "scripts",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00"
},
{
"path": "/arcadia/src",
"name": "src",
"type": "folder",
"updated_at": "2024-01-01 00:00:00",
"created_at": "2024-01-01 00:00:00"
}
]
}