Why not "list = ftplib.FTP.dir()" ?
trylks at gmail.com
Mon Feb 7 23:26:07 CET 2011
I don't know if it is ftplib or just me, but something feels terribly wrong
from ftplib import FTP
> from functools import partial
> class MyFTP(FTP):
> def dir(self):
> l = 
> super(MyFTP, self).dir(partial(lambda l, e: l.append(e.split()), l))
> return l
Unfortunately 'MLSD' is not available in the server I have to use. (I need
to get the list of folders and files modified since last access, hence
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list