Package grizzled :: Package net :: Package ftp :: Module parse :: Class FTPListDataParser
[hide private]
[frames] | no frames]

Class FTPListDataParser

source code

object --+
         |
        FTPListDataParser

An FTPListDataParser object can be used to parse one or more lines that were retrieved by an FTP LIST command that was sent to a remote server.
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
FTPListData
parse_line(self, ftp_list_line)
Parse a line from an FTP LIST command.
source code
 
_guess_time(self, month, mday, hour=0, minute=0) source code
 
_get_mtime(self, year, month, mday, hour=0, minute=0, second=0) source code
 
_get_month(self, buf) source code
 
_parse_EPLF(self, buf) source code
 
_parse_unix_style(self, buf) source code
 
_parse_multinet(self, buf, i) source code
 
_parse_msdos(self, buf) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parse_line(self, ftp_list_line)

source code 
Parse a line from an FTP LIST command.
Parameters:
  • ftp_list_line (str) - The line of output
Returns: FTPListData
An FTPListData object describing the parsed line, or None if the line could not be parsed. Note that it's possible for this method to return a partially-filled FTPListData object (e.g., one without a name).