1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-
#
import datetime,time
import os,shutil
for d in os.listdir("./log/"):
    if os.lstat("./log/"+d).st_size == 0:
        print d,'is no open'
print 'check end '
time.sleep(1)

##哈哈 小伙伴的