We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When cwd-ing into an existing directory, the following error is thrown:
cwd
TypeError: Cannot read property '1' of null
The first item of the backtrace is:
cb(undefined, /"(.+)"(?: |$)/.exec(text)[1]);
The code I am using:
var FTPClient = require('ftp'); var c = new FTPClient(); c.on('ready', function() { c.cwd('/directory-that-exists', function (error) { if (error) { return console.log(error); } c.list(function (error, list) { if (error) { return console.log(error); } console.dir(list); }); }) }); c.connect({ host: 'localhost', port: 21, user: 'ftp', password: 'ftp' });
I've tested this on three separate servers. The only thing they have in common is that they respond to the CWD statement with:
CWD
250 CWD command successful
I can also tell you the server software running on two of them:
ProFTPD 1.3.2e ProFTPD 1.3.4a
Otherwise, everything seems to work I can .list just fine if I don't cwd first.
.list
The text was updated successfully, but these errors were encountered:
In case it matters, I'm using the latest version of your repo off npm, and node -v outputs v0.8.15
npm
node -v
v0.8.15
Sorry, something went wrong.
Should be fixed now in f9983c8. Please give it a try.
Awesome response time! It works, thanks a lot!
No branches or pull requests
When
cwd
-ing into an existing directory, the following error is thrown:The first item of the backtrace is:
The code I am using:
I've tested this on three separate servers. The only thing they have in common is that they respond to the
CWD
statement with:I can also tell you the server software running on two of them:
Otherwise, everything seems to work I can
.list
just fine if I don'tcwd
first.The text was updated successfully, but these errors were encountered: