Module: Net::FTP::List

Defined in:
lib/net/ftp/list.rb

Defined Under Namespace

Classes: ParseError

Class Method Summary collapse

Class Method Details

.parse(*args) ⇒ Object

Parse a line from FTP LIST responsesa and return a Net::FTP::List::Entry



24
25
26
27
28
29
# File 'lib/net/ftp/list.rb', line 24

def self.parse(*args)
  Parser.with_each_parser do | p |
    entry = p.parse(*args)
    return entry if entry
  end
end

.raise_on_failed_server_detectionObject



19
20
21
# File 'lib/net/ftp/list.rb', line 19

def self.raise_on_failed_server_detection
  Thread.current[:net_ftp_list_raise_on_failed_server_detection]
end

.raise_on_failed_server_detection=(new_flag) ⇒ Object



15
16
17
# File 'lib/net/ftp/list.rb', line 15

def self.raise_on_failed_server_detection=(new_flag)
  Thread.current[:net_ftp_list_raise_on_failed_server_detection] = !!new_flag
end