get_path_size
获取指定路径的磁盘占用大小。
- 路由:
POST /files - action:
get_path_size
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 get_path_size |
| path | 是 | String | 目标路径 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| path | String | 传入的路径 |
| size | Integer | 路径占用磁盘大小(字节) |
示例
请求
POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=get_path_size&path=/www/wwwroot
响应
{"path": "/www/wwwroot", "size": 245760}