Is there a rich ftp client library for Python? -


i'm familiar ftplib , works great simple interface need file properties , rich ftp client. know of ftp client library?

use mlsd command. have parse it's easy.

# note portions of mlsd data case insensitive... def parseinfo(info):     fact in info.split(';'):         if not fact:             continue         name, value = fact.split('=', 1)         yield name.lower(), value  ftp = ftplib.ftp(host, user, passwd) dirinfo = {} def callback(line):     info, fname = line.split(' ', 1)     dirinfo[fname] = dict(parseinfo(info)) ftp.retrlines('mlsd {}'.format(path), callback) print(dirinfo) 

that's rich ftp gets.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -