diff --git a/src/android/platform.cpp b/src/android/platform.cpp index 54d5ef1b..f91c2b76 100644 --- a/src/android/platform.cpp +++ b/src/android/platform.cpp @@ -22,13 +22,13 @@ std::string default_realm_file_directory() void ensure_directory_exists_for_file(const std::string &fileName) { - std::string cmd = "rm " + s_default_realm_directory + "/*.realm " + - s_default_realm_directory + "/*.realm.lock"; - system(cmd.c_str()); } void remove_realm_files_from_directory(const std::string &directory) { + std::string cmd = "rm " + s_default_realm_directory + "/*.realm " + + s_default_realm_directory + "/*.realm.lock"; + system(cmd.c_str()); } }