in reply to In Perl, How to pass the File Transfermode in SFTP

Hi Yedu,

As others have already pointed out, SFTP defaults to binary mode, in fact older versions of the protocol don't even have an "ASCII mode", so if you don't see the option in your client you probably won't be able to set it.

Do you really need to transfer files in ASCII mode?

If so, you will probably have to implement the necessary conversions (usually line endings) outside of SFTP, before or after transfer.

Regards,
-- Hauke D

  • Comment on Re: In Perl, How to pass the File Transfermode in SFTP

Replies are listed 'Best First'.
Re^2: In Perl, How to pass the File Transfermode in SFTP
by Yedu (Acolyte) on Jun 01, 2016 at 20:37 UTC
    Hi All, Thanks for your reply. Is there any other possibility to set the transfer mode to ASCII using Net::SFTP::Foreign module or any other modules in the SFTP?
      Also, just to update you, I am using SFTP version3.