gorpong / ganymed-ssh-2

Automatically exported from code.google.com/p/ganymed-ssh-2
Other
0 stars 1 forks source link

why Ganymed-ssh2-261 version has only one put() method in SCPClient? #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to Create given file on server with given contents.

why following put() method is not present anymore in this 261 version?
SCPClient scp = ssh.createSCPClient();
scp.put(byte[] data, remoteFileName, remoteTargetDirectory) 

Original issue reported on code.google.com by rup...@gmail.com on 23 Jan 2014 at 11:58

GoogleCodeExporter commented 8 years ago
any reply on this

Original comment by rup...@gmail.com on 24 Jan 2014 at 5:47

GoogleCodeExporter commented 8 years ago
Hmmm... David replaced the simple methods with a generic uploading mechanism:

SCPOutputStream put(final String remoteFile, long length, String 
remoteTargetDirectory, String mode)

That is a bug, because it is not backwards compatible. I will take care of it.

Original comment by cleondris on 10 Feb 2014 at 11:21

GoogleCodeExporter commented 8 years ago
we have this issue as well, the same with 'get' method, thanks

Original comment by missed...@gmail.com on 12 Feb 2014 at 1:27

GoogleCodeExporter commented 8 years ago
yes , right. I can not integrate ganymed-261 version due to this problem. any 
chances to get the functions back in next release?

Original comment by rup...@gmail.com on 12 Feb 2014 at 6:38

GoogleCodeExporter commented 8 years ago
Use the streams which don't required to load the entire payload into memory.

Original comment by dkocher@sudo.ch on 8 Apr 2014 at 11:26