| ftpparse (version 0.93) | index /usr/local/lib/python2.1/site-packages/ftpparse.so |
Provides access to ftpparse function and assosiated constants.
From Dan Bernstein's ftpparse page at http://cr.yp.to/ftpparse.html
---8<---------------------------------------------------------------
ftpparse is a library for parsing FTP LIST responses.
ftpparse currently understands the LIST output from any UNIX server,
Microsoft FTP Service, Windows NT FTP Server, VMS, WFTPD, NetPresenz,
NetWare, and MS-DOS. It also supports EPLF, a solution to the
LIST-parsing mess.
ftpparse parses file modification times into time_t, so you can easily
compare them and display them in your favorite format. It lets you
know how precise the time_t is: LOCAL meaning exact with known time
zone (available from EPLF), REMOTEMINUTE meaning unknown time zone and
seconds, or REMOTEDAY meaning unknown time zone and time of day.
To use ftpparse, simply feed each line of LIST output to the
ftpparse() routine, along with a pointer to a struct ftpparse. If
ftpparse() returns 1, you can find a filename and various other useful
information inside the struct ftpparse.
Commercial use of ftpparse is fine, as long as you let me know what
programs you're using it in.
---8<---------------------------------------------------------------
This Python module is based on Dan Bernstein's ftpparse
library at http://cr.yp.to/ftpparse.html Mr. Bernstein requests you to
inform him if you use his library in an commercial application.
It extends Bernstein's ftpparse code by providing a way to detect
symbolic links on some UNIX Servers.
You can get the version of the actual module you are using by
querying '__version__' and '__rcsid__'.
The Python wrapper was hacked by drt@un.bewaff.net - http://c0re.23.nu/
You might be able to find more Information and updates at
http://c0re.23.nu/c0de/ftpparse/
| Functions | ||
| ||
| Data | ||
| CWD = 5 ID = 7 IDTYPE = 8 ID_FULL = 1 ID_UNKNOWN = 0 ISLINK = 9 MTIME = 3 MTIMETYPE = 4 MTIME_LOCAL = 1 MTIME_REMOTEDAY = 3 MTIME_REMOTEMINUTE = 2 MTIME_UNKNOWN = 0 NAME = 0 RETR = 6 SIZE = 1 SIZETYPE = 2 SIZE_ASCII = 2 SIZE_BINARY = 1 SIZE_UNKNOWN = 0 __file__ = '/usr/local/lib/python2.1/site-packages/ftpparse.so' __name__ = 'ftpparse' __rcsid__ = '$Id: ftpparsemodule.c,v 1.5 2002/01/18 10:15:51 drt Exp $' __version__ = '0.93' | ||