[ .. ]
See the pydoc output for further enlightment.
>>> import ftpparse
>>> ls = ['-rw-r--r-- 1 root other 531 Jan 29 03:26 README',
... 'dr-xr-xr-x 2 root other 512 Apr 8 1994 etc',
... 'Total of 11 Files, 10966 Blocks.']
>>> ftpparse.ftpparse(ls)
[('README', 531, 1, 980738760, 2, 0, 1, None, 0, 0), ('etc', 512, 1, 765763200, 3, 1, 0, None, 0, 0), None]
>>> for x in ftpparse.ftpparse(ls):
... if x and x[ftpparse.MTIMETYPE] == ftpparse.MTIME_REMOTEMINUTE:
... print x
...
('README', 531, 1, 980738760, 2, 0, 1, None, 0, 0)
05735a02d74554f8895e9faf5e3b15d5 ftpparsemodule-0.93.tar.gz
ea9caff4f0be868aa0175d246ff3dbc2 ftpparsemodule-0.92.tar.gz
48c778676199dc213a13e8443d3c1a8d ftpparsemodule-0.91.tar.gz
8a2f2ed5d1ebac844b087c3ac590bc4c ftpparsemodule-0.9.tar.gz
Snapshots can be found at http://c0re.23.nu/c0de/snap/.
Hacked by Doobee R Tzeck <drt@un.bewaff.net>, hackers@c0re.23.nu
Last modified: Thu Jan 31 09:37:02 CET 2002