Index: sdk/lib/io/directory_impl.dart |
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart |
index f450cb624d35d14e2d880f1d28460e5489758482..80d68be46caf9d528a08cad677e58354e3024382 100644 |
--- a/sdk/lib/io/directory_impl.dart |
+++ b/sdk/lib/io/directory_impl.dart |
@@ -43,6 +43,14 @@ class _Directory extends FileSystemEntity implements Directory { |
} |
} |
+ Uri get uri { |
+ String path = this.path; |
+ if (!path.endsWith("/")) { |
+ path = path + "/"; |
+ } |
+ return new Uri.file(path); |
+ } |
+ |
Future<bool> exists() { |
return _IOService._dispatch(_DIRECTORY_EXISTS, [path]).then((response) { |
if (_isErrorResponse(response)) { |