mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 246 forks source link

FTP.prototype.listSafe TypeError: cb is not a function #213

Open stanzahk opened 6 years ago

stanzahk commented 6 years ago

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 ├─┬ ftp@0.3.10

$ npm -v 4.6.1

$ node -v v6.12.3

Thanks