downloading directory issue
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
Hi There,
I'm using v0.31.0 and i ran into a problem when i try to download a directory from remote to local with this structure: "root/foo/foo/foo/"
The client doesn't preserve the directory structure. I'm getting: "local/root/foo/" instead of "local/root/foo/foo/foo/".
snippet of my code:
try (SSHClient ssh = new SSHClient ()) {
createDirectories (local.getParent ());
ssh.addHostKeyVerifier (new PromiscuousVerifier ());
ssh.connect (server);
ssh.authPassword (serverUser, serverPass);
ssh.newSCPFileTransfer ().download (target.toString (), local.toString ());
} catch (Exception e) {
throw new RuntimeException (e);
}
where:
- local=~/local
- target=~/root
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.