This commit is contained in:
Daniel 2023-05-23 09:07:17 +08:00
parent e4229f2bad
commit 5a644cff73
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -196,6 +196,7 @@ func renameFile(c *gin.Context) {
}
if err = filelock.Rename(filePath, newPath); nil != err {
logging.LogErrorf("rename file [%s] to [%s] failed: %s", filePath, newPath, err)
c.Status(500)
return
}
@ -225,6 +226,7 @@ func removeFile(c *gin.Context) {
}
if err = filelock.Remove(filePath); nil != err {
logging.LogErrorf("remove [%s] failed: %s", filePath, err)
c.Status(500)
return
}