daca2: remove ../clang/INPUTS/.. files since these take so long time to scan
This commit is contained in:
parent
29d401ff38
commit
dddd9848b8
|
@ -117,7 +117,7 @@ def removeLargeFiles(path):
|
||||||
removeLargeFiles(g + '/')
|
removeLargeFiles(g + '/')
|
||||||
elif os.path.isfile(g) and g[-4:] != '.txt':
|
elif os.path.isfile(g) and g[-4:] != '.txt':
|
||||||
statinfo = os.stat(g)
|
statinfo = os.stat(g)
|
||||||
if statinfo.st_size > 100000:
|
if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 100000:
|
||||||
os.remove(g)
|
os.remove(g)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue