lukasz-wronski / vscode-ftp-sync

Ftp Sync plugin for Visual Studio Code
https://marketplace.visualstudio.com/items/lukasz-wronski.ftp-sync
321 stars 85 forks source link

Setting transfer-mode #129

Open varmforsm opened 7 years ago

varmforsm commented 7 years ago

Hi!

Looking at the options/settings for the sftp-sync plugin, I can't see there being any "text/ascii-mode" setting for the transfer? We're moving files between Linux and OpenVMS, and it needs to be an ASCII-transfer (instead of "binary") or there'll be issues.

Is there a setting we've missed?

Regards,

/ M

s-kocher commented 7 years ago

Hello, I have the same problem, all my local files have CRLF ending line sequence (working on Windows) and my remote server needs LF but the ftp upload kept the CRLF sequence instead of replacing with LF (most of the sent files are *.yml or no extension text files). Is there a way to set the transfer-mode to ascii (specify line ending from settings if not provided by remote host) or use autodetect like some ftp clients ?

Regards, SK

bgarrant commented 7 years ago

I have exact same issue when editing on Windows files from a Pure-FTPd server.

bgarrant commented 7 years ago

I believe this article from WinSCP explains the issue better. https://winscp.net/eng/docs/faq_line_breaks