mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-23 12:58:55 +00:00
remove management directories in node
This commit is contained in:
parent
a78f2270ae
commit
5eb64025f9
@ -66,7 +66,12 @@ void remove_realm_files_from_directory(const std::string &dir_path)
|
||||
while (struct dirent *entry = readdir(dir)) {
|
||||
if (strstr(entry->d_name, ".realm")) {
|
||||
// Intentionally not complaining if there was an error.
|
||||
unlink(entry->d_name);
|
||||
if (entry->d_type == DT_DIR) {
|
||||
rmdir(entry->d_name);
|
||||
}
|
||||
else {
|
||||
unlink(entry->d_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user