Setting your local directory |
Your local directory is the relative path from which all files will be uploaded from or downloaded to when communicating with the server and may be set using the Sftp#setLocalDir method. If you do not define the local directory the local directory will default to the directory from which the Java™ VM was instantiated.
Example
// set local directory sftp.setLocalDir(new File("c:/tmp")); |