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

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

Issue 15832003: Change File.directory to not do any IO (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/io_patch.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file.dart
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart
index eb3dcd7c8e6f25744b558646e9b0ff1adde0e443..2198dd893da2cfd07f19fb399a36bd09387bf821 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -94,18 +94,9 @@ abstract class File extends FileSystemEntity {
/**
* Get a [Directory] object for the directory containing this
- * file. Returns a [:Future<Directory>:] that completes with the
- * directory.
- */
- Future<Directory> directory();
-
- /**
- * Synchronously get a [Directory] object for the directory containing
- * this file.
- *
- * Throws a [FileIOException] if the operation fails.
+ * file.
*/
- Directory directorySync();
+ Directory get directory;
/**
* Get the length of the file. Returns a [:Future<int>:] that
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/io_patch.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698