Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling the get function prevents from calling the others until the download is completed #36

Open
Deveosys opened this issue Dec 10, 2018 · 0 comments

Comments

@Deveosys
Copy link

Deveosys commented Dec 10, 2018

Hey !
Nice lib, thanks for your work !
Am I doign something wrong ?

I get a file from my server and it works, but until the download is finished, others calls (list for example) are just "waiting", no error. Should I open a new specific ftp connection for each file i want to manipulate ?

Here is how I use the get function :

vm.$ftp.get(filePath)
.then(function(readableStream) {
readableStream
.pipe(progress)
.pipe(fs.createWriteStream(localPath))
})
.catch(function(error) {
console.log(error)
})

EDIT : My bad .... of course I have to open a specific connection for each file !

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

No branches or pull requests

1 participant