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

Unified Diff: utils/pub/io.dart

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error 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
« no previous file with comments | « utils/pub/hosted_source.dart ('k') | utils/pub/package.dart » ('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 8b632e3b47320f2d35c84910c0c2165502be8f2c..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);
}
/**
@@ -712,6 +712,8 @@ class PubHttpException implements Exception {
final String reason;
const PubHttpException(this.statusCode, this.reason);
+
+ String toString() => 'HTTP error $statusCode: $reason';
}
/**
@@ -721,6 +723,8 @@ class TimeoutException implements Exception {
final String message;
const TimeoutException(this.message);
+
+ String toString() => message;
}
/**
« no previous file with comments | « utils/pub/hosted_source.dart ('k') | utils/pub/package.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698