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

Class FTPMlstDataParser

source code

object --+
         |
        FTPMlstDataParser

An FTPMlstDataParser object can be used to parse one or more lines that were retrieved by an FTP MLST or MLSD command that was sent to a remote server.

Contributed by Andrew Scheller <gcode@loowis.durge.org>.

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 MLST or MLSD command.
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 MLST or MLSD 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 mtime).