## 列出目录文件
注:API参数{fileId}表示目录ID,根目录为0。结果中的文件有两种类型,folder为文件夹(空文件),file为实际文件,每个文件由一个唯一索引ID确定。
返回结果的password字段用于分享文件时游客上传,有密码的文件需要带password下载,详情见下载文件接口。其中zipDownloadUrl为压缩下载地址,访问该地址即可下载该目录/文件的压缩包。
~~~[api]
get:https://api.kstore.space/api/v1/file/list/{fileId}
*access_token=11-c4a1ccd34fc8498b8c67facbbb536c7d#认证码
<<<
success
{
"status": 200,
"msg": null,
"data": {
"direct": 0,
"downloadUrl": "https://download.kstore.space/download/11/test/",
"type": "folder",
"list": [{
"cache": "",
"realpath": "1e95e352c4674d0c6a32ac887698ce50",
"zipDownloadUrl": "https://download.kstore.space/download/zip/11/test/13995232752940.png?password=d86569fdaca4a2ac39349e705ec1d9b6-1636887315028",
"direct": 0,
"downloadUrl": "https://download.kstore.space/download/11/test/13995232752940.png",
"mimeType": "image/png",
"type": "file",
"userId": 11,
"parentId": 42386,
"path": "test/13995232752940.png",
"password": "8631fe9a2fc223fc63836ea97f0c4598-1636898115028",
"encryption": 1,
"size": 254480,
"createTime": 1636617819000,
"name": "13995232752940.png",
"share": 0,
"id": 42392,
"time": 1636617819000,
"downloadCount": 1
}],
"userId": 11,
"parentId": 0,
"path": "test/",
"encryption": 0,
"size": 0,
"createTime": 1636603118000,
"name": "test",
"id": 42386,
"time": 1636603118000,
"downloadCount": 0
}
}
<<<
error
~~~