Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Net::FTP#ls

ls(*args)

Alias of #list

Returns an array of file information in the directory (the output is like ‘ls -l`). If a block is given, it iterates through the listing.