-
Notifications
You must be signed in to change notification settings - Fork 244
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
Multiple Call Fail #4
Comments
Do you still notice this with 0.1.3? |
0.1.3 has same issue: ftp.con.pwd(function(err,pwd){console.log("first",pwd)});
console.log(ftp.con.cwd(remotebase,function(err){
ftp.con.pwd(function(err,pwd){console.log("second",pwd)});
}));
ftp.con.pwd(function(err,pwd){console.log("third",pwd)}); my console show:
Why is second undefined? When I comment a line: ftp.con.pwd(function(err,pwd){console.log("first",pwd)});
console.log(ftp.con.cwd(remotebase,function(err){
// ftp.con.pwd(function(err,pwd){console.log("second",pwd)});
}));
ftp.con.pwd(function(err,pwd){console.log("third",pwd)}); The console show :
|
This should be fixed now in the master branch, let me know either way if it's still causing this issue for you or not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure it is just not supported, but when attempting to send multiple commands it crashes, or stops working. Please note I understand how to work with asynchronous code, so while my examples look synchronous they are not.
I issued the following when stopped working with no reporting, I think it connected to the anonymous server but the change directory should still error out:
The following crashes ftp.js:160 if( code == 250 && self._queue[0][0] === 'MLST' ) TypeError: Cannot read property '0' of undefined:
My work around was to make my own queue in my main function, but having the system work with queues would help make it easy to use and avoid over anonymoizing.
The text was updated successfully, but these errors were encountered: