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

How to search multiple file in ftp? #262

Open
JeffersonJiao opened this issue Feb 7, 2020 · 0 comments
Open

How to search multiple file in ftp? #262

JeffersonJiao opened this issue Feb 7, 2020 · 0 comments

Comments

@JeffersonJiao
Copy link

I need to get a report like data to get the file that is not on the FTP server. I have the code below but i cannot get the data.

listOfFile =['1.pdf','2.pdf','3.pdf'];
lisfOfNotFound = [];
for(var i=0; i<listOFfile.length;i++){
var c = new Client();
c.on("ready", function() {
console.log(list[0].shipment_id);
for (var i = 0; i < list.length; i++) {
c .get(${list[i]}.pdf,
function(err, data) {
if (err){
lisfOfNotFound.push(list[i])
}
c.end();
}
);
}
});
c.connect(config.ftp);
}

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