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

Unified Diff: runtime/bin/file.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
Index: runtime/bin/file.dart
diff --git a/runtime/bin/file.dart b/runtime/bin/file.dart
index f55bc302ad7e58cb5144a83e7acc2df0227c70bb..eacdbf39b4054cd8d37fa0ab5440552cbaf7177f 100644
--- a/runtime/bin/file.dart
+++ b/runtime/bin/file.dart
@@ -29,6 +29,11 @@ interface File default _File {
File(String name);
/**
+ * Create a File object from a Path object. Uses Path.toNativePath().
Mads Ager (google) 2012/06/22 07:44:36 Remove the 'Uses Path.toNativePath().' part of the
Bill Hesse 2012/06/22 10:35:33 Done.
+ */
+ File.fromPath(Path path);
Søren Gjesse 2012/06/22 08:06:12 Same here - should we consider making this the def
+
+ /**
* Check if the file exists. Does not block and returns a
* [:Future<bool>:].
*/

Powered by Google App Engine
This is Rietveld 408576698