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:
Daniel Marjamäki 2013-11-02 12:03:25 +01:00
parent 5f89777182
commit e948f4c9ee
1 changed files with 1 additions and 1 deletions

View File

@ -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)