| Index: sdk/lib/io/file_system_entity.dart
|
| diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart
|
| index 642a063525d63e2084a56f36869795e0bcbb5840..7e8b0dd7859aa27c44aba8673ff0c9365e45e742 100644
|
| --- a/sdk/lib/io/file_system_entity.dart
|
| +++ b/sdk/lib/io/file_system_entity.dart
|
| @@ -198,7 +198,7 @@ FileStat: type $type
|
| * ## 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 [File] class,
|
| * both subclasses of FileSystemEntity.
|
| *
|
| @@ -215,6 +215,14 @@ abstract class FileSystemEntity {
|
| String get path;
|
|
|
| /**
|
| + * Returns a [Uri] representing the file system entity's location.
|
| + *
|
| + * The returned URI's scheme is always "file" if the entity's [path] is
|
| + * absolute, otherwise the scheme will be empty.
|
| + */
|
| + Uri get uri => new Uri.file(path);
|
| +
|
| + /**
|
| * Checks whether the file system entity with this path exists. Returns
|
| * a [:Future<bool>:] that completes with the result.
|
| *
|
|
|