Open vpkreddi opened 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?
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?