noop

noop() Instance Public methods Issues a NOOP command. Does nothing except return a response.

nlst

nlst(dir = nil) Instance Public methods Returns an array of filenames in the remote directory.

mtime

mtime(filename, local = false) Instance Public methods Returns the last modification time of the (remote) file. If local is true, it is returned as a local time, otherwise it's a UTC time.

mkdir

mkdir(dirname) Instance Public methods Creates a remote directory.

mdtm

mdtm(filename) Instance Public methods Issues the MDTM command. TODO: more info.

ls

ls(*args) Instance Public methods Alias for: list

login

login(user = "anonymous", passwd = nil, acct = nil) Instance Public methods Logs in to the remote host. The session must have been previously connected. If user is the string âanonymousâ and the password is nil, a password of user@host is synthesized. If the acct parameter is not nil, an FTP ACCT command is sent following the successful login. Raises an exception on error (typically Net::FTPPermError).

list

list(*args) Instance Public methods 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. ls dir

help

help(arg = nil) Instance Public methods Issues the HELP command.

gettextfile

gettextfile(remotefile, localfile = File.basename(remotefile)) Instance Public methods Retrieves remotefile in ASCII (text) mode, storing the result in localfile. If localfile is nil, returns retrieved data. If a block is supplied, it is passed the retrieved data one line at a time.