rmdir

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

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â).

retrbinary

retrbinary(cmd, blocksize, rest_offset = nil) Instance Public methods Puts the connection into binary (image) mode, issues the given command, and fetches the data returned, passing it to the associated block in chunks of blocksize characters. Note that cmd is a server command (such as âRETR myfileâ).

rename

rename(fromname, toname) Instance Public methods Renames a file on the server.

read_timeout=

read_timeout=(sec) Instance Public methods Setter for the #read_timeout attribute.

quit

quit() Instance Public methods Exits the FTP session.

pwd

pwd() Instance Public methods Returns the current remote directory. getdir

puttextfile

puttextfile(localfile, remotefile = File.basename(localfile)) Instance Public methods Transfers localfile to the server in ASCII (text) mode, storing the result in remotefile. If callback or an associated block is supplied, calls it, passing in the transmitted data one line at a time.

putbinaryfile

putbinaryfile(localfile, remotefile = File.basename(localfile), blocksize = DEFAULT_BLOCKSIZE) Instance Public methods Transfers localfile to the server in binary mode, storing the result in remotefile. If a block is supplied, calls it, passing in the transmitted data in blocksize chunks.

put

put(localfile, remotefile = File.basename(localfile), blocksize = DEFAULT_BLOCKSIZE, &block) Instance Public methods Transfers localfile to the server in whatever mode the session is set (text or binary). See puttextfile and putbinaryfile.