代码:

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 '没有完成' time.sleep(5) #flags =False print '完成'
# 当前时间
print time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())
 

 

相关文章:

  • 2021-12-12
  • 2021-09-21
  • 2022-12-23
  • 2021-11-27
  • 2021-04-05
  • 2022-12-23
  • 2021-06-21
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案