retrlines

retrlines(cmd) Instance Public methods Puts the connection into ASCII (text) mode, issues the given command, and passes the resulting data, one line at a time, to the associated block. If no block is given, prints the lines. Note that cmd is a server command (such as âRETR myfileâ).

rmdir

rmdir(dirname) Instance Public methods Removes a remote directory.

sendcmd

sendcmd(cmd) Instance Public methods Sends a command and returns the response.

set_socket

set_socket(sock, get_greeting = true) Instance Public methods WRITEME or make private

site

site(arg) Instance Public methods Issues a SITE command.

size

size(filename) Instance Public methods Returns the size of the given (remote) filename.

status

status() Instance Public methods Returns the status (STAT command).

storbinary

storbinary(cmd, file, blocksize, rest_offset = nil) Instance Public methods Puts the connection into binary (image) mode, issues the given server-side command (such as âSTOR myfileâ), and sends the contents of the file named file to the server. If the optional block is given, it also passes it the data, in chunks of blocksize characters.

storlines

storlines(cmd, file) Instance Public methods Puts the connection into ASCII (text) mode, issues the given server-side command (such as âSTOR myfileâ), and sends the contents of the file named file to the server, one line at a time. If the optional block is given, it also passes it the lines.

system

system() Instance Public methods Returns system information.