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

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

Issue 57943002: Add fromUri constructor to File, Directory and Link (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added tests Created 7 years, 1 month 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
Index: sdk/lib/io/directory_impl.dart
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart
index 9cbd1b9661d198a52976c78b435e1b8df6e60e04..939be7b85c600f2ab62211b13e608c72aa36888c 100644
--- a/sdk/lib/io/directory_impl.dart
+++ b/sdk/lib/io/directory_impl.dart
@@ -14,6 +14,8 @@ class _Directory extends FileSystemEntity implements Directory {
}
}
+ factory _Directory.fromUri(Uri uri) => new _Directory(uri.toFilePath());
+
external static _current();
external static _setCurrent(path);
external static _createTemp(String path);

Powered by Google App Engine
This is Rietveld 408576698