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]. |