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

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: 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
« sdk/lib/io/directory.dart ('K') | « 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..18e5dc01f64faa24cfdf694f88d871e92bb95c73 100644
--- a/sdk/lib/io/link.dart
+++ b/sdk/lib/io/link.dart
@@ -15,9 +15,11 @@ 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].
+ * The path is either an absolute path,
+ * or it is a relative path which is interpreted relative to the current
+ * working directory (see [Directory.current]).
*/
factory Link.fromUri(Uri uri) => new Link(uri.toFilePath());
« sdk/lib/io/directory.dart ('K') | « sdk/lib/io/file.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698