diff options
author | Tor Egge <Tor.Egge@yahooinc.com> | 2022-06-03 11:03:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 11:03:30 +0200 |
commit | 54b80fbeb0d6b1f05135f18740423614f719a418 (patch) | |
tree | 9f4c9e6e97ee811405b79badc83f869fbca4d6ad /searchcore/src/apps/proton/proton.cpp | |
parent | b689e431346217d3b7c0bd93c51a0779abbf1f82 (diff) | |
parent | 914317d3db05758483eaea09a60ef8bfa3981948 (diff) |
Merge pull request #22879 from vespa-engine/toregge/remove-most-use-of-vespalib-rmdir-in-searchcore
Remove most use of vespalib::rmdir in searchcore.
Diffstat (limited to 'searchcore/src/apps/proton/proton.cpp')
-rw-r--r-- | searchcore/src/apps/proton/proton.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/apps/proton/proton.cpp b/searchcore/src/apps/proton/proton.cpp index 333e79216ad..60b64dd9ad8 100644 --- a/searchcore/src/apps/proton/proton.cpp +++ b/searchcore/src/apps/proton/proton.cpp @@ -6,13 +6,13 @@ #include <vespa/vespalib/util/signalhandler.h> #include <vespa/vespalib/util/programoptions.h> #include <vespa/vespalib/util/size_literals.h> -#include <vespa/vespalib/io/fileutil.h> #include <vespa/vespalib/util/exceptions.h> #include <vespa/config/common/exceptions.h> #include <vespa/config/common/configcontext.h> #include <vespa/fnet/transport.h> #include <vespa/fastos/thread.h> #include <vespa/fastos/file.h> +#include <filesystem> #include <iostream> #include <thread> #include <fcntl.h> @@ -240,7 +240,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); |