Returns data (e.g., size, last modification time, entry type, etc.) about
the file or directory specified by pathname. If pathname
is omitted, the current directory is assumed.
# File lib/net/ftp.rb, line 1085
def mlst(pathname = nil)
cmd = pathname ? "MLST #{pathname}" : "MLST"
resp = sendcmd(cmd)
if !resp.start_with?("250")
raise FTPReplyError, resp
end
line = resp.lines[1]
unless line
raise FTPProtoError, resp
end
entry = line.sub(/\A(250-| *)/, "")
return parse_mlsx_entry(entry)
end