libf 4 tháng trước cách đây
mục cha
commit
cc5fb9295e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      sync/sync.go

+ 1 - 0
sync/sync.go

@@ -271,6 +271,7 @@ func WriteFile(basedir string, fpath string, bs []byte, mtime time.Time) (err er
 }
 
 func WriteRemoteFile(username, password, hostport, remotepath, fpath string, bs []byte, mtime time.Time) error {
+	fpath = strings.ReplaceAll(fpath, "\\", "/")
 	fmt.Println("copy to:", fmt.Sprint(username, ":", password, "@", hostport, "/", remotepath, "/", fpath))
 	hp := strings.Split(hostport, ":")
 	host := hp[0]