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

Unified Diff: utils/pub/io.dart

Issue 12481003: Delete files synchronously. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | utils/tests/pub/pub.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 6e5ef86d2d548da976ed63f70893d2c750db2d69..d9a12664eb8f077a93feaa072eda28289cc7098f 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -63,7 +63,7 @@ String writeTextFile(String file, String contents, {dontLogContents: false}) {
/// Deletes [file].
void deleteFile(String file) {
- new File(file).delete();
+ new File(file).deleteSync();
}
/// Creates [file] and writes [contents] to it.
« no previous file with comments | « no previous file | utils/tests/pub/pub.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698