Downloading ASCII text files

Top  Previous  Next

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");





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC