#52 C0666 supported ?

open
nobody
None
5
2011-03-18
2011-03-18
Marco Ratto
No

I'm trying to transfer a file using C0666 but I have a problem: the GRANT is not changed on the target system.

This is the code:
private void sendFileToRemote(File localFile,
InputStream in,
OutputStream out) throws IOException, ScpException {
// send "C0644 filesize filename", where filename should not include '/'
long filesize = localFile.length();
String command = "C0666 " + filesize + " ";
command += localFile.getName();
command += "\n";

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks