I don't know if it is ftplib or just me, but something feels terribly wrong in this:
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 split). Cheers.
-- http://mail.python.org/mailman/listinfo/python-list