filesystem: use non-experimental
std::filesystem has replaced std::experimental::filesystem
since at least C++17 and experimental no longer links without
extra effort in C++20. Use the C++17 std::filesystem APIs.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I33cfc22e04e435fcdca5bf83b5877a7a27c394c8
diff --git a/log_manager_main.cpp b/log_manager_main.cpp
index 7302abd..6371440 100644
--- a/log_manager_main.cpp
+++ b/log_manager_main.cpp
@@ -3,7 +3,7 @@
#include "extensions.hpp"
#include "log_manager.hpp"
-#include <experimental/filesystem>
+#include <filesystem>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/manager.hpp>
#include <sdeventplus/event.hpp>
@@ -22,7 +22,7 @@
phosphor::logging::Manager mgr(bus, OBJ_LOGGING, iMgr);
// Create a directory to persist errors.
- std::experimental::filesystem::create_directories(ERRLOG_PERSIST_PATH);
+ std::filesystem::create_directories(ERRLOG_PERSIST_PATH);
// Recreate error d-bus objects from persisted errors.
iMgr.restore();