daca2: don't remove large text files. there was some strange problem that results.txt was removed when a results.txt in a subfolder was removed.
This commit is contained in:
parent
5f89777182
commit
e948f4c9ee
|
@ -112,7 +112,7 @@ def removeLargeFiles(path):
|
|||
continue
|
||||
if os.path.isdir(g):
|
||||
removeLargeFiles(g + '/')
|
||||
elif os.path.isfile(g) and g != 'results.txt':
|
||||
elif os.path.isfile(g) and g[-4:] != '.txt':
|
||||
statinfo = os.stat(g)
|
||||
if statinfo.st_size > 100000:
|
||||
os.remove(g)
|
||||
|
|
Loading…
Reference in New Issue