CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Update file.go
[email protected]78479f9604b7
diff --git a/service/file.go b/service/file.goindex 697dd14..9b14b70 100644--- a/service/file.go+++ b/service/file.go@@ -2,7 +2,7 @@* @Author: LinkLeong [email protected]* @Date: 2021-12-20 14:15:46* @LastEditors: LinkLeong- * @LastEditTime: 2022-06-09 18:15:54+ * @LastEditTime: 2022-06-16 16:47:46* @FilePath: /CasaOS/service/file.go* @Description:* @Website: https://www.casaos.io@@ -93,13 +93,12 @@ func FileOperate(k string) {v := temp.Item[i]if temp.Type == "move" {lastPath := v.From[strings.LastIndex(v.From, "/")+1:]-if !file.CheckNotExist(temp.To + "/" + lastPath) {if temp.Style == "skip" {temp.Item[i].Finished = truecontinue} else {- os.Remove(temp.To + "/" + lastPath)+ os.RemoveAll(temp.To + "/" + lastPath)}}