Module: Net::FTP::List

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

Defined Under Namespace

Classes: ParseError

Class Method Summary (collapse)

Class Method Details

+ (Object) parse(*args)

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

+ (Object) raise_on_failed_server_detection



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

+ (Object) raise_on_failed_server_detection=(new_flag)



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