c++17: drop experimental::filesystem
Use the real filesystem library, and drop support for building with
experimental under c++14.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I730c0d6dce53b5e0aa0867cddb7f325cdb9b45fc
diff --git a/dump_offload.cpp b/dump_offload.cpp
index 18e3bb6..8089d75 100644
--- a/dump_offload.cpp
+++ b/dump_offload.cpp
@@ -128,7 +128,8 @@
return unixSocket;
}
-void requestOffload(fs::path file, uint32_t dumpId, std::string writePath)
+void requestOffload(std::filesystem::path file, uint32_t dumpId,
+ std::string writePath)
{
using namespace sdbusplus::xyz::openbmc_project::Common::File::Error;
using ErrnoOpen = xyz::openbmc_project::Common::File::Open::ERRNO;
@@ -136,7 +137,7 @@
using ErrnoWrite = xyz::openbmc_project::Common::File::Write::ERRNO;
using PathWrite = xyz::openbmc_project::Common::File::Write::PATH;
// open a dump file for a transfer.
- fs::path dumpPath(BMC_DUMP_PATH);
+ std::filesystem::path dumpPath(BMC_DUMP_PATH);
dumpPath /= std::to_string(dumpId);
dumpPath /= file.filename();