开发者

SharpSSH's Scp object can't copy files bigger than 2GB

开发者 https://www.devze.com 2023-01-14 15:12 出处:网络
Whenever I try to copy a file that\'s bigger than 2GB, I get an array index out of bounds exception in the Get me开发者_如何学Cthod:

Whenever I try to copy a file that's bigger than 2GB, I get an array index out of bounds exception in the Get me开发者_如何学Cthod:

Scp myScp = new Scp("remotehost", "joe", "mypassword");
myScp.OnTransferProgress += new FileTransferEvent(scpProg);
myScp.Connect(22);
myScp.Get("/home/joe/bigfile.bin", "/tmp/bigfile.bin");
myScp.Close();


...which I solved by patching SharpSSH replacing int with Int64 in strategic places. Here's the patch.

0

精彩评论

暂无评论...
验证码 换一张
取 消