| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 library pub.system_cache; | 5 library pub.system_cache; | 
| 6 | 6 | 
| 7 import 'dart:async'; | 7 import 'dart:async'; | 
| 8 import 'dart:io'; | 8 import 'dart:io'; | 
| 9 | 9 | 
| 10 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 99     var temp = ensureDir(tempDir); | 99     var temp = ensureDir(tempDir); | 
| 100     return io.createTempDir(temp, 'dir'); | 100     return io.createTempDir(temp, 'dir'); | 
| 101   } | 101   } | 
| 102 | 102 | 
| 103   /// Deletes the system cache's internal temp directory. | 103   /// Deletes the system cache's internal temp directory. | 
| 104   void deleteTempDir() { | 104   void deleteTempDir() { | 
| 105     log.fine('Clean up system cache temp directory $tempDir.'); | 105     log.fine('Clean up system cache temp directory $tempDir.'); | 
| 106     if (dirExists(tempDir)) deleteEntry(tempDir); | 106     if (dirExists(tempDir)) deleteEntry(tempDir); | 
| 107   } | 107   } | 
| 108 } | 108 } | 
| OLD | NEW | 
|---|