Method: Net::FTP#option
- Defined in:
- lib/net/ftp.rb
#option(name, params = nil) ⇒ Object
Issues an OPTS command
-
name Should be the name of the option to set
-
params is any optional parameters to supply with the option
example: option(‘UTF8’, ‘ON’) => ‘OPTS UTF8 ON’
1386 1387 1388 1389 1390 1391 |
# File 'lib/net/ftp.rb', line 1386 def option(name, params = nil) cmd = "OPTS #{name}" cmd += " #{params}" if params voidcmd(cmd) end |