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

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

Issue 1083393004: Add uri getter on file system entity. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/core/uri.dart ('k') | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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].
« no previous file with comments | « sdk/lib/core/uri.dart ('k') | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698