delete files in the correct place
This commit is contained in:
parent
bf80fca2c0
commit
fe4abff106
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue