查询属性
GET
Tokenheader
api-token<token>32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
path*string绝对路径
返回文件属性信息
application/json- response
type*FileType文件类型
值于
"folder""file"name*string名称
parent_path*string存储位置路径
mode*string权限(3位数字)
size*integer大小(单位字节)
display_size*string格式化大小(带单位)
modified_time*string内容最后一次被修改的时间
格式
date-timeaccessed_time*string最后一次被访问的时间
格式
date-timecreated_time*string创建时间
格式
date-timechanged_time*string属性(如权限或链接)最后一次被更改的时间
格式
date-timecurl -X GET "https://example.com/file/v1/info?path=string"{ "type": "folder", "name": "string", "parent_path": "string", "mode": "string", "size": 0, "display_size": "string", "modified_time": "2019-08-24T14:15:22Z", "accessed_time": "2019-08-24T14:15:22Z", "created_time": "2019-08-24T14:15:22Z", "changed_time": "2019-08-24T14:15:22Z"}
