delete files in the correct place

This commit is contained in:
Ari Lazier 2016-01-21 12:37:03 -08:00
parent bf80fca2c0
commit fe4abff106
1 changed files with 3 additions and 3 deletions

View File

@ -22,13 +22,13 @@ std::string default_realm_file_directory()
void ensure_directory_exists_for_file(const std::string &fileName) 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) 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());
} }
} }