Index: sdk/lib/io/directory.dart |
diff --git a/sdk/lib/io/directory.dart b/sdk/lib/io/directory.dart |
index eecaa685996621db16f8a1b3b1306f95bd4c2de0..80057260e2f4f8d9a92e5ff78d190aa4fd3e7c20 100644 |
--- a/sdk/lib/io/directory.dart |
+++ b/sdk/lib/io/directory.dart |
@@ -44,7 +44,7 @@ part of dart.io; |
* print(directory.path); |
* }); |
* } |
- * |
+ * |
* ## List a directory |
* |
* Use the [list] or [listSync] methods to get the files and directories |
@@ -100,7 +100,7 @@ part of dart.io; |
* ## Other resources |
* |
* * [Dart by Example](https://www.dartlang.org/dart-by-example/#files-directories-and-symlinks) |
- * provides additional task-oriented code samples that show how to use |
+ * provides additional task-oriented code samples that show how to use |
* various API from the Directory class and the related [File] class. |
* |
* * [I/O for Command-Line Apps](https://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-dartio---file-and-socket-io-for-command-line-apps) |
@@ -111,7 +111,7 @@ part of dart.io; |
* a tutorial about writing command-line apps, includes information |
* about files and directories. |
*/ |
-abstract class Directory extends FileSystemEntity { |
+abstract class Directory implements FileSystemEntity { |
/** |
* Gets the path of this directory. |
*/ |
@@ -142,6 +142,15 @@ abstract class Directory extends FileSystemEntity { |
static Directory get current => _Directory.current; |
/** |
+ * Returns a [Uri] representing the directory's location. |
+ * |
+ * The returned URI's scheme is always "file" if the entity's [path] is |
+ * absolute, otherwise the scheme will be empty. |
+ * The returned URI's path always ends in a slash ('/'). |
+ */ |
+ Uri get uri; |
+ |
+ /** |
* Sets the current working directory of the Dart process including |
* all running isolates. The new value set can be either a [Directory] |
* or a [String]. |