Module: Net::FTP::List
- Defined in:
- lib/net/ftp/list.rb
Defined Under Namespace
Classes: ParseError
Class Method Summary collapse
-
.parse(*args, **opts) ⇒ Object
Parse a line from FTP LIST responsesa and return a Net::FTP::List::Entry.
- .raise_on_failed_server_detection ⇒ Object
- .raise_on_failed_server_detection=(new_flag) ⇒ Object
Class Method Details
.parse(*args, **opts) ⇒ 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, **opts) Parser.parsers.each do |parser| entry = parser.parse(*args, **opts) return entry if entry end end |
.raise_on_failed_server_detection ⇒ Object
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 |