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

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

Issue 281723004: Fix Directory, File and Link constructor text. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: review Created 6 years, 7 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/io/file.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/link.dart
diff --git a/sdk/lib/io/link.dart b/sdk/lib/io/link.dart
index 13c18693f53c39e9a7309526c0f6a3f073920c08..eb65ac818a80385534d7ed6680fe25c44c43ae5a 100644
--- a/sdk/lib/io/link.dart
+++ b/sdk/lib/io/link.dart
@@ -15,9 +15,13 @@ abstract class Link extends FileSystemEntity {
factory Link(String path) => new _Link(path);
/**
- * Create a Lint object from a URI.
+ * Creates a [Link] object.
*
- * If [uri] cannot reference a link this throws [UnsupportedError].
+ * If [path] is a relative path, it will be interpreted relative to the
+ * current working directory (see [Directory.current]), when used.
+ *
+ * If [path] is an absolute path, it will be immune to changes to the
+ * current working directory.
*/
factory Link.fromUri(Uri uri) => new Link(uri.toFilePath());
« no previous file with comments | « sdk/lib/io/file.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698