atinux / node-ftps

FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.
MIT License
202 stars 57 forks source link

anonymous ftp #36

Closed jeromew closed 7 years ago

jeromew commented 7 years ago

Hello,

I am trying to access a FTP server that is anonymous (no username, no password).

The only way I could get through is by modifying the code to remove the -u option.

I could send a PR but it is not clear to me how you want to handle this because of the requiresPassword option. I could add a requiresUsername option that would remove the check for the option + remove the -u user,pass option.

tell me what you think

atinux commented 7 years ago

What if the username is optional and we add the -u option if defined?

I would love you to do a PR for this :)

jeromew commented 7 years ago

ok will do that

jeromew commented 7 years ago

linked to PR #37

atinux commented 7 years ago

It's now possible in the version 0.5.0 :)