| Index: utils/pub/io.dart
|
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart
|
| index 06ac7df1c972e7817893abd288010c0cdc0f866f..e9c19f9383521efa4a3cc0307b1f0559057410f3 100644
|
| --- a/utils/pub/io.dart
|
| +++ b/utils/pub/io.dart
|
| @@ -172,10 +172,11 @@ Future<Directory> ensureDir(path) {
|
|
|
| /**
|
| * Creates a temp directory whose name will be based on [dir] with a unique
|
| - * suffix appended to it. Returns a [Future] that completes when the directory
|
| - * is created.
|
| + * suffix appended to it. If [dir] is not provided, a temp directory will be
|
| + * created in a platform-dependent temporary location. Returns a [Future] that
|
| + * completes when the directory is created.
|
| */
|
| -Future<Directory> createTempDir(dir) {
|
| +Future<Directory> createTempDir([dir = '']) {
|
| dir = _getDirectory(dir);
|
| return dir.createTemp();
|
| }
|
|
|