Downloading binary files |
To download binary files you must set the transfer mode to binary (the default) using the Sftp#setBinary method. All files will be downloaded relative to your current remote directory. See Setting your remote directory for details.
Example
// turn off auto transfer mode detection if enabled sftp.setAuto(false);
// set transfer mode to binary sftp.setBinary();
// download all files ending with .gif extension to current local directory sftp.mdownload("*.gif"); |