node-ftp
node-ftp copied to clipboard
FTP.prototype.listSafe TypeError: cb is not a function
Documentation states zcomp is an optional parameter for listSafe, but invoking like that:
listSafe('/path', function(err,list)) with a non extistent path it returns an exception TypeError: cb is not a function.
$ npm list | grep ftp ├─┬ [email protected]
$ npm -v 4.6.1
$ node -v v6.12.3
Thanks