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

Unified Diff: sdk/lib/_internal/pub/lib/src/io.dart

Issue 219333008: Allow configuring build directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix year. Created 6 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
Index: sdk/lib/_internal/pub/lib/src/io.dart
diff --git a/sdk/lib/_internal/pub/lib/src/io.dart b/sdk/lib/_internal/pub/lib/src/io.dart
index b054a770d1157370cf1428e9f3a3ffd7b9a2c4d9..09cbea8bb81f010c6c47235ae150c07b3e462fdf 100644
--- a/sdk/lib/_internal/pub/lib/src/io.dart
+++ b/sdk/lib/_internal/pub/lib/src/io.dart
@@ -318,7 +318,7 @@ void deleteEntry(String path) {
/// new empty directory will be created.
void cleanDir(String dir) {
if (entryExists(dir)) deleteEntry(dir);
- createDir(dir);
+ ensureDir(dir);
}
/// Renames (i.e. moves) the directory [from] to [to].

Powered by Google App Engine
This is Rietveld 408576698