Browse Source

修正路径错误

master
xyiege 1 month ago
parent
commit
2ec36400c3
  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()) fmt.Println(err.Error())
} }
// ToSlash 过滤windows的斜杠引起的bug // 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 { if err != nil {
return err return err
} }

Loading…
Cancel
Save