Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2192)

Unified Diff: utils/pub/system_cache.dart

Issue 13116020: Clean up the semantics of io.dart operations w.r.t. symlinks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/source.dart ('k') | utils/tests/pub/install/git/lock_version_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index b6467b5f88f78f12aa18e4928c1ea1fce2ec7007..1b30ea8501904819265c59c25b194eb0bb48b70c 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -111,7 +111,6 @@ class SystemCache {
/// Deletes the system cache's internal temp directory.
void deleteTempDir() {
log.fine('Clean up system cache temp directory $tempDir.');
- if (!dirExists(tempDir)) return;
- deleteDir(tempDir);
+ if (dirExists(tempDir)) deleteEntry(tempDir);
}
}
« no previous file with comments | « utils/pub/source.dart ('k') | utils/tests/pub/install/git/lock_version_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698