nlst

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

noop

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

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.

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.

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.

pwd

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

quit

quit() Instance Public methods Exits the FTP session.

read_timeout=

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

rename

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

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