| Index: runtime/bin/file.cc
|
| diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc
|
| index 2289c0d0364bb4e76e27b6d8a473559a5dc80a53..2cbe96c3f75da1b09b467cf97aeef5c615e2ffb0 100644
|
| --- a/runtime/bin/file.cc
|
| +++ b/runtime/bin/file.cc
|
| @@ -252,3 +252,16 @@ void FUNCTION_NAME(File_Create)(Dart_NativeArguments args) {
|
| Dart_SetReturnValue(args, Dart_NewBoolean(result));
|
| Dart_ExitScope();
|
| }
|
| +
|
| +
|
| +void FUNCTION_NAME(File_FullPath)(Dart_NativeArguments args) {
|
| + Dart_EnterScope();
|
| + const char* str =
|
| + DartUtils::GetStringValue(Dart_GetNativeArgument(args, 0));
|
| + char* path = File::GetCanonicalPath(str);
|
| + if (path != NULL) {
|
| + Dart_SetReturnValue(args, Dart_NewString(path));
|
| + free(path);
|
| + }
|
| + Dart_ExitScope();
|
| +}
|
|
|