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

Unified Diff: sdk/lib/io/file_impl.dart

Issue 52263003: Implement least upper bound. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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 | « sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698