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

Unified Diff: runtime/bin/directory.cc

Issue 8965036: Add asynchronous versions of the methods on Directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years 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 | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/directory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.cc
diff --git a/runtime/bin/directory.cc b/runtime/bin/directory.cc
index df2e7fda82df1d1a2728b751de957f541cca4ff3..3c9fc4d26800e536c3e6b903b7f2682ff3618267 100644
--- a/runtime/bin/directory.cc
+++ b/runtime/bin/directory.cc
@@ -44,7 +44,7 @@ void FUNCTION_NAME(Directory_Exists)(Dart_NativeArguments args) {
static const int kExists = 1;
static const int kDoesNotExist = 0;
Dart_EnterScope();
- Dart_Handle path = Dart_GetNativeArgument(args, 1);
+ Dart_Handle path = Dart_GetNativeArgument(args, 0);
if (Dart_IsString(path)) {
Directory::ExistsResult result =
Directory::Exists(DartUtils::GetStringValue(path));
@@ -65,7 +65,7 @@ void FUNCTION_NAME(Directory_Exists)(Dart_NativeArguments args) {
void FUNCTION_NAME(Directory_Create)(Dart_NativeArguments args) {
Dart_EnterScope();
- Dart_Handle path = Dart_GetNativeArgument(args, 1);
+ Dart_Handle path = Dart_GetNativeArgument(args, 0);
if (Dart_IsString(path)) {
bool created = Directory::Create(DartUtils::GetStringValue(path));
Dart_SetReturnValue(args, Dart_NewBoolean(created));
@@ -119,7 +119,7 @@ void FUNCTION_NAME(Directory_CreateTemp)(Dart_NativeArguments args) {
void FUNCTION_NAME(Directory_Delete)(Dart_NativeArguments args) {
Dart_EnterScope();
- Dart_Handle path = Dart_GetNativeArgument(args, 1);
+ Dart_Handle path = Dart_GetNativeArgument(args, 0);
if (Dart_IsString(path)) {
bool deleted = Directory::Delete(DartUtils::GetStringValue(path));
Dart_SetReturnValue(args, Dart_NewBoolean(deleted));
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/directory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698