Downloading ASCII text files |
To download ASCII text files you must set the transfer mode to ASCII using the Sftp#setAscii 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 ASCII sftp.setAscii();
// download all files ending with .txt extension to current local directory sftp.mdownload("*.txt"); |