End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::FTP#option
option(name, params = nil)
lib/net/ftp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/ftp.rb, line 1352
def option(name, params = nil)
cmd = "OPTS #{name}"
cmd += " #{params}" if params
voidcmd(cmd)
end
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’