= private = protected
nlst(dir = nil)
Returns an array of filenames in the remote directory.
# File lib/net/ftp.rb, line 606 def nlst(dir = nil) cmd = "NLST" if dir cmd = cmd + " " + dir end files = [] retrlines(cmd) do |line| files.push(line) end return files end