Re_Recycle_bin
将回收站中的文件或目录恢复到其原始位置。
先通过 Get_Recycle_bin 获取回收站列表,取目标项的 rname 字段作为 path 参数传入。
- 路由:
POST /files - action:
Re_Recycle_bin
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 Re_Recycle_bin |
| path | 是 | String | 回收站中的文件名(rname),如 _bt_tmp_bt_test.txt_t_1234567890.123 |
| rpath | 否 | String | 恢复到指定目录(不填则恢复到原始路径) |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 恢复成功 |
| msg | String | 恢复成功! |
示例
请求
POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=Re_Recycle_bin&path=_bt_tmp_bt_bt_recycle_test.txt_t_1779504311
响应
{"status": true, "msg": "恢复成功!"}
相关接口
- Get_Recycle_bin — 查看回收站列表
- DeleteDir — 删除文件到回收站