代码: import os, re, time name = 'linuxday01' flags = True# 文件夹bi_test中的文件列表 print os.listdir('E:\\bi_test') while flags: for f in os.listdir('E:\\bi_test'): # 寻找以name开头,以.download结尾的文件 if re.search(name + '\.(.*)\.download$', f): print f print '没有完成'
FTP文件夹错误将文件复制到FTP服务器时发生错误.请检查是否有权限将文件放到该服务器上.详细信息:200 Type set to I.227Entering Passive Mode (122,114,49,4,4,87).125 Data connection already open;Transfer starting.426 Connection closed;transfer aborted. 之前更新网站的时候遇到过这个问题,而且问题比较奇怪,一个网站可以更新,另一个网站提示这个不行