We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2d0971 + 692fd89 commit d973d21Copy full SHA for d973d21
1 file changed
src/main/java/com/plugin/sshjplugin/model/SSHJScp.java
@@ -83,9 +83,9 @@ public void execute(SSHClient ssh) throws Exception {
83
try {
84
85
if(useSftp) {
86
- sftp.put(new FileSystemFile(this.localFile), toDir);
+ sftp.put(new FileSystemFile(file), toDir);
87
} else {
88
- ssh.newSCPFileTransfer().upload(new FileSystemFile(this.localFile), toDir);
+ ssh.newSCPFileTransfer().upload(new FileSystemFile(file), toDir);
89
}
90
} catch (IOException e) {
91
e.printStackTrace();
0 commit comments