Chromium Code Reviews| Index: tools/bots/compiler.py |
| diff --git a/tools/bots/compiler.py b/tools/bots/compiler.py |
| index 9e88f2c140303d03f0b9cbcf5de7e0d5e3560195..0d3e9232e1a2aa673105de0fa69ed17b99152e01 100644 |
| --- a/tools/bots/compiler.py |
| +++ b/tools/bots/compiler.py |
| @@ -257,8 +257,9 @@ def CleanUpTemporaryFiles(system, browser): |
| - browser: one of the browsers, see GetBuildInfo |
| """ |
| if system.startswith('win'): |
| - shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp', |
| - ignore_errors=True) |
| + temp_dir = 'C:\\Users\\chrome-bot\\AppData\\Local\\Temp' |
| + for name in os.listdir(temp_dir): |
|
ricow1
2013/01/08 10:39:37
Should we do:
for root, dirs, files in os.walk(tem
kustermann
2013/01/08 11:24:49
Let's delete only directories, this hack only exis
|
| + shutil.rmtree(temp_dir + "\\" + name, ignore_errors=True) |
| elif browser == 'ff' or 'opera': |
| # Note: the buildbots run as root, so we can do this without requiring a |
| # password. The command won't actually work on regular machines without |