Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Downloaded csv file contains only single line? #105

Open
vpkreddi opened this issue Feb 16, 2018 · 0 comments
Open

Downloaded csv file contains only single line? #105

vpkreddi opened this issue Feb 16, 2018 · 0 comments

Comments

@vpkreddi
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant