| 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));
|
|
|