跳到主要内容
版本:latest

CheckExistsFiles

检查源文件是否与目标路径下已有文件重名,用于上传/复制前确认。

  • 路由POST /files
  • actionCheckExistsFiles

输入参数

参数名称必选类型描述
actionString固定值 CheckExistsFiles
dfileString目标目录路径
filenameString要检查的单个文件名。不传则检查 session 中勾选的全部文件

输出参数

参数名称类型描述
-Array已存在的文件名列表,空数组 [] 表示无冲突

示例

请求

POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=CheckExistsFiles&dfile=/www/wwwroot&filename=index.html

响应

[]