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

Unified Diff: utils/pub/io.dart

Issue 11364097: Allow Directory.create to create all missing path components. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload Created 8 years, 1 month 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
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 26647c86d54c041e6ce96628519032f269c07d65..cccedfc17b93098bafde5f6847aaa8d9023ba6a5 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -222,7 +222,7 @@ Future<Directory> createTempDir([dir = '']) {
*/
Future<Directory> deleteDir(dir) {
dir = _getDirectory(dir);
- return dir.deleteRecursively();
+ return dir.delete(recursive: true);
}
/**

Powered by Google App Engine
This is Rietveld 408576698