跳到主要内容
版本:latest

Re_Recycle_bin

将回收站中的文件或目录恢复到其原始位置。

先通过 Get_Recycle_bin 获取回收站列表,取目标项的 rname 字段作为 path 参数传入。

  • 路由POST /files
  • actionRe_Recycle_bin

输入参数

参数名称必选类型描述
actionString固定值 Re_Recycle_bin
pathString回收站中的文件名(rname),如 _bt_tmp_bt_test.txt_t_1234567890.123
rpathString恢复到指定目录(不填则恢复到原始路径)

输出参数

参数名称类型描述
statusBooleantrue 恢复成功
msgString恢复成功!

示例

请求

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": "恢复成功!"}

相关接口