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

Unified Diff: runtime/bin/directory.dart

Issue 10639004: Add .fromPath constructors to File and Directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « no previous file | runtime/bin/directory_impl.dart » ('j') | runtime/bin/file.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.dart
diff --git a/runtime/bin/directory.dart b/runtime/bin/directory.dart
index 1fd96c9f222b1ee75868625c01641f8a439d9847..60e6bfd566ba9cb86ff9d2caca6346127841f604 100644
--- a/runtime/bin/directory.dart
+++ b/runtime/bin/directory.dart
@@ -7,13 +7,20 @@
*/
interface Directory default _Directory {
/**
- * Creates a directory object. The path is either a full path or
- * relative to the directory in which the Dart VM was
- * started.
+ * Creates a directory object. The path is either an absolute path,
+ * or it is a relative path which is interpreted relative to the directory
+ * in which the Dart VM was started.
*/
Directory(String path);
/**
+ * Creates a directory object from a Path object. The path is either
+ * an absolute path, or it is a relative path which is interpreted
+ * relative to the directory in which the Dart VM was started.
+ */
+ Directory.fromPath(Path path);
Søren Gjesse 2012/06/22 08:06:12 I know that it would be a breaking change, but sho
Bill Hesse 2012/06/22 10:35:33 I'd like to make breaking changes once we are more
+
+ /**
* Creates a directory object pointing to the current working
* directory.
*/
« no previous file with comments | « no previous file | runtime/bin/directory_impl.dart » ('j') | runtime/bin/file.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698