请求参数
参数名
类型
描述
必填
path
string
需要查询的路径。默认为“/”,即用户根目录。
必填
响应参数
参数名
类型
描述
必填
files
array
当前目录下的文件信息。
必填
type
string
文件类型。目录或者普通文件。
必填
说明 / 示例
### 请求实例
```json
{
"path": "/gpuhome"
}
```
### 响应实例
```json
{
"files": [
{
"filename": "DKH.pptx",
"last_modified": "Fri, 14 Aug 2020 07:35:28 GMT",
"size": "528720",
"type": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"filename": "Docker%20%e5%ae%89%e8%a3%85DKH1.6-CentOS6.txt",
"last_modified": "Fri, 14 Aug 2020 07:35:29 GMT",
"size": "27",
"type": "text/plain"
},
{
"filename": "Documents",
"last_modified": "Mon, 10 Aug 2020 08:38:57 GMT",
"type": "collection"
},
{
"filename": "Nextcloud%20Manual.pdf",
"last_modified": "Mon, 10 Aug 2020 08:38:56 GMT",
"size": "6631339",
"type": "application/pdf"
},
{
"filename": "Nextcloud.mp4",
"last_modified": "Mon, 10 Aug 2020 08:38:57 GMT",
"size": "462413",
"type": "video/mp4"
},
{
"filename": "Nextcloud.png",
"last_modified": "Mon, 10 Aug 2020 08:38:57 GMT",
"size": "37042",
"type": "image/png"
},
{
"filename": "Photos",
"last_modified": "Mon, 10 Aug 2020 08:38:56 GMT",
"type": "collection"
},
{
"filename": "compute.txt",
"last_modified": "Fri, 14 Aug 2020 07:35:28 GMT",
"size": "8716",
"type": "text/plain"
},
{
"filename": "docker-dkh-file.txt",
"last_modified": "Fri, 14 Aug 2020 07:35:29 GMT",
"size": "611",
"type": "text/plain"
},
{
"filename": "gpuhome",
"last_modified": "Mon, 10 Aug 2020 10:25:56 GMT",
"type": "collection"
}
]
}
```