用于枚举出ftp下所有文件的工具


参考网上代码写出的,有问题请在该git里修改


localftp = LocalFTP('192.168.70.100','210','anonymous','pas')
#localftp.dirparser = LocalFTP.parse_windows
filelist = localftp.rnlst('/')
with open("a.txt","w") as outf:
    for line in filelist:
         outf.write(line)
         outf.write("\r\n")
    outf.close()



git如下


https://git.oschina.net/anzhuangguai/pyknife.git

你可能感兴趣的:(knife)