fake_ftp
fake_ftp copied to clipboard
`nlst` command accept a dirname and return all the files on it
Will using the gem we realised that some of our listing commands do not behave as they are working against actual FTP servers.
connection = Net::FTP.new('host', 'user', 'password')
connection.nlst('unprocessed')
The previous code return the list of all the files inside the unprocessed
folder on the FTP server, but using FakeFtp
as that command has no wildcards it does not work as expected.
Probably we can change the code on our side, but we think this change is minimum and make FakeFtp
closer to an actual FTP server.
Face the same issue. Thanks for bugfix!
I find fully featured ftpd server which can be embedded in tests https://github.com/wconrad/ftpd