Browse Source

压缩包路径正确

master
xyiege 1 month ago
parent
commit
9b961d943c
  1. 2
      scagent/util/fsutil.go

2
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", filesPath, dest))
zfile, err := os.Create(path.Join(filesPath, dest))
if err != nil {
return err
}

Loading…
Cancel
Save