daca2: don't check large files
This commit is contained in:
parent
4f578a5e4b
commit
91e23c0660
|
@ -63,6 +63,16 @@ def removeAllExceptResults():
|
|||
continue
|
||||
count = 0
|
||||
|
||||
def removeLargeFiles(path):
|
||||
for g in glob.glob(path + '*'):
|
||||
if g=='.' or g=='..':
|
||||
continue
|
||||
if os.path.isdir(g):
|
||||
removeLargeFiles(g + '/')
|
||||
elif g != 'results.txt':
|
||||
statinfo = os.stat(g)
|
||||
if statinfo.st_size > 100000:
|
||||
os.remove(g)
|
||||
|
||||
def scanarchive(fullpath):
|
||||
results = open('results.txt', 'at')
|
||||
|
|
Loading…
Reference in New Issue