From 914317d3db05758483eaea09a60ef8bfa3981948 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Thu, 2 Jun 2022 16:35:21 +0200 Subject: Remove most use of vespalib::rmdir in searchcore. --- searchcore/src/apps/proton/proton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searchcore/src/apps/proton/proton.cpp') diff --git a/searchcore/src/apps/proton/proton.cpp b/searchcore/src/apps/proton/proton.cpp index 386ceb4eeda..2f69bcece66 100644 --- a/searchcore/src/apps/proton/proton.cpp +++ b/searchcore/src/apps/proton/proton.cpp @@ -6,13 +6,13 @@ #include #include #include -#include #include #include #include #include #include #include +#include #include #include #include @@ -239,7 +239,7 @@ App::startAndRun(FastOS_ThreadPool & threadPool, FNET_Transport & transport, int } else { const ProtonConfig &protonConfig = configSnapshot->getProtonConfig(); vespalib::string basedir = protonConfig.basedir; - vespalib::mkdir(basedir, true); + std::filesystem::create_directories(std::filesystem::path(basedir)); { ExitOnSignal exit_on_signal; proton.init(configSnapshot); -- cgit v1.2.3