Browse Source

修复多重路径文件判断识别错误

master
453530270@qq.com 2 years ago
parent
commit
8fc1ac17c8
  1. BIN
      fsv2/fstc
  2. 2
      fsv2/handler/handler.go

BIN
fsv2/fstc

Binary file not shown.

2
fsv2/handler/handler.go

@ -111,7 +111,7 @@ func ReceiveHandler(w http.ResponseWriter, r *http.Request) {
return
}
// 检查文件是否存在
if util.IsFileExist(filename) {
if util.IsFileExist(nfname) {
// 文件重命名
dstfname := filename + "_backup_" + time.Now().Format("20060102150405")
os.Rename(filename, dstfname)

Loading…
Cancel
Save