fake_ftp icon indicating copy to clipboard operation
fake_ftp copied to clipboard

`nlst` command accept a dirname and return all the files on it

Open pacoguzman opened this issue 7 years ago • 2 comments

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.

pacoguzman avatar Jan 10 '18 08:01 pacoguzman

Face the same issue. Thanks for bugfix!

mainameiz avatar Mar 19 '18 09:03 mainameiz

I find fully featured ftpd server which can be embedded in tests https://github.com/wconrad/ftpd

mainameiz avatar Mar 19 '18 11:03 mainameiz