diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-06-23 21:39:48 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-06-23 21:39:48 +0200 |
commit | 09d546dfdd152ce4e69971fc8ce422d998cb523a (patch) | |
tree | 18da6c3d44a2a056fcc41a213f47feec26f2e30b /searchcore/src/tests/proton/index/indexmanager_test.cpp | |
parent | 316b44c13d886ef9ff50b040f4a01f38dfd3f94c (diff) |
Use std::filesystem to create and remove directories.
Diffstat (limited to 'searchcore/src/tests/proton/index/indexmanager_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/index/indexmanager_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/index/indexmanager_test.cpp b/searchcore/src/tests/proton/index/indexmanager_test.cpp index 0bc11e64df8..b427daa4ad1 100644 --- a/searchcore/src/tests/proton/index/indexmanager_test.cpp +++ b/searchcore/src/tests/proton/index/indexmanager_test.cpp @@ -85,7 +85,7 @@ Schema getSchema() { } void removeTestData() { - FastOS_FileInterface::EmptyAndRemoveDirectory(index_dir.c_str()); + std::filesystem::remove_all(std::filesystem::path(index_dir)); } Document::UP buildDocument(DocBuilder &doc_builder, int id, |