lib/niftp.rb
# Connects to the +host+ FTP server, executes the given block then closes
# the connection.
#
# See the README for available options and examples.
Connects to the +host+ FTP server, executes the given block then closes
the connection.

See the README for available options and examples.
Connects to the + host + FTP server executes the given block then closes the connection . See the README for available options and examples .
def default_options
    {
      :username => "",
      :password => "",
      :port     => 21,
      :ftps     => false,
      :passive  => true,
      :timeout  => 30, 
      :tries    => 2,
      :sleep    => 1,  
      :on       => StandardError,
      :matching => /.*/
    }
  end
def default_options { :username => "" , :password => "" , :port => 21 , :ftps => false , :passive => true , :timeout => 30 , :tries => 2 , :sleep => 1 , :on => StandardError , :matching => / .* / } end
Connects to the +host+ FTP server, executes the given block then closes
the connection.
Connects to the + host + FTP server executes the given block then closes the connection .
# seconds # second