spmjs / node-scp2

[MAINTAINER WANTED] A pure javascript scp program based on ssh2.
384 stars 96 forks source link

Downloaded csv file contains only single line? #105

Open vpkreddi opened 6 years ago

vpkreddi commented 6 years ago

HI,

I used scp2 module to download from windows FTP server. Client is in Ubuntu environment.

FTP Server - windows Client environment- ubunut 16.4 Platform - node

Code used:

client.scp({ host: 'example.com', username: 'admin', password: 'password', path: '/home/admin/file.txt' }, './', function(err) {})

Expected result -- CSV file with multiple lines Actual result -- CSV file with only one line(contains all the data with no line separator)

Do I need to configure client to add any encoding format?