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#list

list(*args) { |line| ... }

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.