Chromium Code Reviews| Index: sdk/lib/io/directory.dart |
| diff --git a/sdk/lib/io/directory.dart b/sdk/lib/io/directory.dart |
| index 8f54a3928f142b13f8cb6c3026bf886f46542413..6d0119a3dafbb505ef23e7abc38571ff9504ca9c 100644 |
| --- a/sdk/lib/io/directory.dart |
| +++ b/sdk/lib/io/directory.dart |
| @@ -16,6 +16,13 @@ abstract class Directory implements FileSystemEntity { |
| factory Directory(String path) => new _Directory(path); |
| /** |
| + * Create a Directory object from a URI. |
| + * |
| + * If [uri] cannot reference a directory this throws [UnsupportedError]. |
| + */ |
| + factory Directory.fromUri(Uri uri) => new _Directory.fromUri(uri); |
|
Anders Johnsen
2013/11/05 08:30:56
Just say 'new Directory(uri.toFilePath())' here? L
Søren Gjesse
2013/11/05 09:33:56
Of cause, done.
|
| + |
| + /** |
| * Creates a directory object pointing to the current working |
| * directory. |
| */ |