Light and complete FTP client implementation for Node.js
This major version bump is mainly due to the raw
API changes.
This bugfix release fixes an error when reading some remote MS-DOS folder listings.
Also:
Not that Node 0.12 is released, there is no need to keep compatibility with a stable version that is 3 stages removed form the current one.
Fixed:
end
event on socket (@sergi)When attempting 2 simultaneous PASV requests, an ECONNREFUSED
would happen and crash jsftp. With this release, an error will be generated when this happens, giving a clue on what went wrong. This is the kind of code that could cause an ECONNREFUSED
before:
var JsFtp = require('jsftp'),
ftp = new JsFtp({
"host": "localhost",
"user": "foo",
"pass": "bar",
}),
file1 = 'foo/1.jpg',
file2 = 'foo/2.jpg';
// Wrong way to invoke two consecutive requests!
ftp.get(file1, __dirname + '/2.jpg', function () {
console.log('FILE1', arguments);
});
ftp.get(file2, __dirname + '/2.jpg', function () {
console.log('FILE2', arguments);
});
This is a small release containing a fix for when a LIST
command (called directly or using Ftp.ls
) would be issued with a path to an un-existing file or directory. In this case, the error would never be caught and the ls
callback would never be notified.
In some cases, get
would still try to retrieve the file even if there was an error getting the passive socket. This is now fixed.
New release! This time severa changes in the release have been contributed by external developers. Thanks a lot for your help!
Release notes:
hasFeat
now always returns a boolean value. (thanks to @asylumfunk)keepAlive
can take an optional time period now. (thanks to @asylumfunk)Enjoy!
This release offers the following improvements:
ls
, stat
or list
.