Jsch - Download |work| Directory

: Uses Java's File.mkdirs() to mirror the remote structure on your local machine.

// Usage: sftpChannel.get(remotePath, localPath); sftpChannel.get("/home/remoteuser/data.txt", "C:/Downloads/local_data.txt"); Use code with caution. jsch download directory

JSch does not natively support a single command to download a recursive directory structure. To achieve this, you must implement a loop that: in the remote directory using ls(String path) . : Uses Java's File