查看某一目录下的文件list | 大装置帮助中心
跳到主要内容

查看某一目录下的文件list

GET https://sandbox.cn-sh-01.sensecoreapi.cn/studio/sandbox/v1/workspaces/{workspace_id}/sandboxes/{sandbox_id}:listFiles

请求头(Request Header)

请求参数(Request Parameters)

名称类型必须位置描述
workspace_idstringpath工作空间 ID
sandbox_idstringpath沙箱 ID
directory_pathstringquery目录路径(默认根目录)

响应(Response)

异常情况请参考异常响应说明

字段类型描述
filesarray[object]文件/目录列表

其中,files每个元素包含参数如下:

字段类型描述
namestring名称
sizedouble大小(字节)
is_directorybool是否为目录
create_timestring创建时间
update_timestring更新时间

响应示例(Response Example)

  • 正常响应

{
"files": [
{
"name": "string",
"size": 0,
"is_directory": true,
"create_time": "2025-08-26T14:34:22.941Z",
"update_time": "2025-08-26T14:34:22.941Z"
}
]
}