I use WinSCP for FTP, to upload files on host servers. On some of them, but very rarely, it creates white space after every line of code (new lines in my case). So when I download it back from the server, number of code lines is doubled.

有帮助吗?

解决方案

I found that some hosts are using ASCII(text) as default transfer mode, and others use BINARY. So when I change this to the one that server use, there is no more new lines in transfered files.

In WinSCP this is located under Options->Transfer->Edit->Transfer Mode

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top