copy api

This commit is contained in:
微凉
2022-01-26 14:07:51 +08:00
parent c70fc3fc4b
commit 8fc7c716c0
4 changed files with 65 additions and 3 deletions

View File

@ -24,7 +24,7 @@ func Rename(c *gin.Context) {
return
}
if path_ == "/" {
common.ErrorStrResp(c, "Can't account name here", 400)
common.ErrorStrResp(c, "Can't edit account name here", 400)
return
}
err = operate.Move(driver, account, path_, utils.Join(utils.Dir(path_), req.Name), true)