From bab26a32ba2adb3088670559af54583b2559eb50 Mon Sep 17 00:00:00 2001 From: starainrt Date: Wed, 7 Jul 2021 11:01:41 +0800 Subject: [PATCH] bug fix Signed-off-by: starainrt --- sftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sftp.go b/sftp.go index 6b1c031..a886d24 100644 --- a/sftp.go +++ b/sftp.go @@ -33,7 +33,7 @@ func SftpTransferOut(localFilePath, remotePath string, sftpClient *sftp.Client) } defer dstFile.Close() for { - buf := make([]byte, 1024) + buf := make([]byte, 1048576) n, err := srcFile.Read(buf) dstFile.Write(buf[:n]) if err == io.EOF {