diff options
author | James Feist <james.feist@linux.intel.com> | 2019-01-08 21:36:20 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2019-01-08 21:40:08 +0300 |
commit | f6150403cc5ff5fc69d5f9dca4d305c4aaac933e (patch) | |
tree | 42282a40b0201edc0533ba97580a83fc6e6857f7 /include/openbmc_dbus_rest.hpp | |
parent | bb3d994666e5dba2d2be08c89736d3f46612dde0 (diff) | |
download | bmcweb-f6150403cc5ff5fc69d5f9dca4d305c4aaac933e.tar.xz |
Move filesystem from experimental namespace
Splice it into standard for gcc8
Change-Id: I584206dd737c9d90cf93bfa8541980fdd8f6d39b
Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'include/openbmc_dbus_rest.hpp')
-rw-r--r-- | include/openbmc_dbus_rest.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp index 4c68facbbe..8b9bd05e94 100644 --- a/include/openbmc_dbus_rest.hpp +++ b/include/openbmc_dbus_rest.hpp @@ -13,6 +13,8 @@ // limitations under the License. #pragma once +#include "filesystem.hpp" + #include <crow/app.h> #include <tinyxml2.h> @@ -21,7 +23,6 @@ #include <boost/container/flat_set.hpp> #include <dbus_singleton.hpp> #include <dbus_utility.hpp> -#include <experimental/filesystem> #include <fstream> #include <sdbusplus/message/types.hpp> @@ -1516,20 +1517,20 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...> &app) res.end(); return; } - std::experimental::filesystem::path loc( + std::filesystem::path loc( "/var/lib/phosphor-debug-collector/dumps"); loc /= dumpId; - if (!std::experimental::filesystem::exists(loc) || - !std::experimental::filesystem::is_directory(loc)) + if (!std::filesystem::exists(loc) || + !std::filesystem::is_directory(loc)) { BMCWEB_LOG_ERROR << loc << "Not found"; res.result(boost::beast::http::status::not_found); res.end(); return; } - std::experimental::filesystem::directory_iterator files(loc); + std::filesystem::directory_iterator files(loc); for (auto &file : files) { |