Use regular std::filesystem

Now that std::filesystem is available there's no need to use
std::experimental::filesystem.

Note the '/' operator does behave differently when the RHS is an
absolute path (starts with /), but none of the  uses here make use of an
absolute path.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ice5ed7e85f6bf9c8355a66b5b00fe8550899a258
diff --git a/control/manager.cpp b/control/manager.cpp
index 8109367..adf9b53 100644
--- a/control/manager.cpp
+++ b/control/manager.cpp
@@ -29,7 +29,7 @@
 #include <xyz/openbmc_project/Common/error.hpp>
 
 #include <algorithm>
-#include <experimental/filesystem>
+#include <filesystem>
 
 namespace phosphor
 {
@@ -39,7 +39,7 @@
 {
 
 using namespace phosphor::logging;
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
 
 constexpr auto SYSTEMD_SERVICE = "org.freedesktop.systemd1";
 constexpr auto SYSTEMD_OBJ_PATH = "/org/freedesktop/systemd1";
diff --git a/control/zone.cpp b/control/zone.cpp
index bcecb08..be539bf 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -28,7 +28,7 @@
 #include <xyz/openbmc_project/Common/error.hpp>
 
 #include <chrono>
-#include <experimental/filesystem>
+#include <filesystem>
 #include <fstream>
 #include <functional>
 #include <stdexcept>
@@ -43,7 +43,7 @@
 using namespace std::chrono;
 using namespace phosphor::fan;
 using namespace phosphor::logging;
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
 using InternalFailure =
     sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
 
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index 029220a..36b20b1 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -24,7 +24,7 @@
 #include <phosphor-logging/elog.hpp>
 #include <phosphor-logging/log.hpp>
 
-#include <experimental/filesystem>
+#include <filesystem>
 #include <functional>
 #include <optional>
 #include <utility>
@@ -39,7 +39,7 @@
 constexpr auto FAN_TARGET_PROPERTY = "Target";
 constexpr auto FAN_VALUE_PROPERTY = "Value";
 
-using namespace std::experimental::filesystem;
+namespace fs = std::filesystem;
 using InternalFailure =
     sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
 
@@ -76,9 +76,10 @@
                        const std::optional<size_t>& errorDelay,
                        size_t countInterval, const sdeventplus::Event& event) :
     _bus(bus),
-    _fan(fan), _name(FAN_SENSOR_PATH + id), _invName(path(fan.getName()) / id),
-    _hasTarget(hasTarget), _funcDelay(funcDelay), _interface(interface),
-    _factor(factor), _offset(offset), _method(method), _threshold(threshold),
+    _fan(fan), _name(FAN_SENSOR_PATH + id),
+    _invName(fs::path(fan.getName()) / id), _hasTarget(hasTarget),
+    _funcDelay(funcDelay), _interface(interface), _factor(factor),
+    _offset(offset), _method(method), _threshold(threshold),
     _ignoreAboveMax(ignoreAboveMax), _timeout(timeout),
     _timerMode(TimerMode::func),
     _timer(event, std::bind(&Fan::updateState, &fan, std::ref(*this))),