daca2: skip docs and examples.. that might be garbage

This commit is contained in:
Daniel Marjamäki 2017-09-15 22:19:11 +02:00
parent 1dbcba4dd6
commit 4bd251a6d9
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ def removeLargeFiles(path):
# Remove test code
if g.endswith('/testsuite') or g.endswith('/clang/INPUTS'):
shutil.rmtree(g, onerror=handleRemoveReadonly)
# Remove docs and examples ... that might be garbage
elif g.endswith('/doc') or g.endswith('/examples'):
shutil.rmtree(g, onerror=handleRemoveReadonly)
else:
removeLargeFiles(g + '/')
elif os.path.isfile(g) and g[-4:] != '.txt':