Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index 8a7ce392de92689007e6dd043b68900fc2961756..cb1efe3fd1577bcf56b387786376fafc45dc72f8 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -257,8 +257,9 @@ class _File extends FileSystemEntity implements File { |
FileStat statSync() => FileStat.statSync(path); |
Future<File> create({bool recursive: false}) { |
- return (recursive ? parent.create(recursive: true) |
- : new Future.value(null)) |
+ var result = recursive ? parent.create(recursive: true) |
+ : new Future.value(null); |
+ return result |
.then((_) => _IOService.dispatch(_FILE_CREATE, [path])) |
.then((response) { |
if (_isErrorResponse(response)) { |