diff --git a/scagent/util/fsutil.go b/scagent/util/fsutil.go index 7c9087e..d06e7c7 100644 --- a/scagent/util/fsutil.go +++ b/scagent/util/fsutil.go @@ -335,7 +335,7 @@ func CompressToZip(dest string, currentPath string, paths []string) error { fmt.Println(err.Error()) } // ToSlash 过滤windows的斜杠引起的bug - zfile, err := os.Create(path.Join("./sync_zips", "/", dest)) + zfile, err := os.Create(path.Join("./sync_zips", filesPath, dest)) if err != nil { return err }