Signed-off-by: starainrt <i@b612.me>
This commit is contained in:
兔子 2021-07-07 11:01:41 +08:00
parent be040542bb
commit bab26a32ba

View File

@ -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 {