linkcheck.ftpparse

Python implementation of a part of Dan Bernstein’s ftpparse library.

See also http://cr.yp.to/ftpparse.html

Functions

ftpparse(line)

Parse a FTP list line into a dictionary with attributes: name - name of file (string) trycwd - False if cwd is definitely pointless, True otherwise tryretr - False if retr is definitely pointless, True otherwise

ismonth(txt)

Check if given text is a month name.

linkcheck.ftpparse.ftpparse(line)[source]

Parse a FTP list line into a dictionary with attributes: name - name of file (string) trycwd - False if cwd is definitely pointless, True otherwise tryretr - False if retr is definitely pointless, True otherwise

If the line has no file information, None is returned

linkcheck.ftpparse.ismonth(txt)[source]

Check if given text is a month name.