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

Unified Diff: runtime/bin/directory_impl.dart

Issue 9622001: Add the ability to get the current directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows Created 8 years, 9 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/directory_impl.dart
diff --git a/runtime/bin/directory_impl.dart b/runtime/bin/directory_impl.dart
index e1e46ebcbe2975f7650695753fa5797ac55f65a0..5243345902c347b9ea41997f6da9b2e079db5fdf 100644
--- a/runtime/bin/directory_impl.dart
+++ b/runtime/bin/directory_impl.dart
@@ -18,7 +18,9 @@ class _Directory implements Directory {
static final kListRequest = 4;
_Directory(String this._path);
+ _Directory.current() : _path = _current();
+ static String _current() native "Directory_Current";
static String _createTemp(String template,
_OSStatus status) native "Directory_CreateTemp";
static int _exists(String path) native "Directory_Exists";

Powered by Google App Engine
This is Rietveld 408576698