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

Unified Diff: runtime/bin/directory_posix.cc

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_posix.cc
diff --git a/runtime/bin/directory_posix.cc b/runtime/bin/directory_posix.cc
index 7e10e52c4a88c2126bbfbab63555ca7d19b5e755..527509be343eed25535bda624f464ce64d6b7859 100644
--- a/runtime/bin/directory_posix.cc
+++ b/runtime/bin/directory_posix.cc
@@ -377,6 +377,11 @@ Directory::ExistsResult Directory::Exists(const char* dir_name) {
}
+char* Directory::Current() {
+ return getcwd(NULL, 0);
+}
+
+
bool Directory::Create(const char* dir_name) {
// Create the directory with the permissions specified by the
// process umask.

Powered by Google App Engine
This is Rietveld 408576698