Replace std::experimental::filesystem with std::filesystem

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I91d2f1b7a8858ba8c676b68693863bb35b56dffc
diff --git a/occ_device.cpp b/occ_device.cpp
index 6cd6a1f..2ee5f34 100644
--- a/occ_device.cpp
+++ b/occ_device.cpp
@@ -15,15 +15,14 @@
 std::string Device::getPathBack(const fs::path& path)
 {
     if (path.empty())
+    {
         return std::string();
+    }
 
     // Points to the last element in the path
     auto conf = --path.end();
 
-    // The last element will be '.' if the path ends in '/'
-    // This behavior differs between filesystem and experimental::filesystem
-    // Verify there is an element before too
-    if (!conf->compare(".") && conf != path.begin())
+    if (conf->empty() && conf != path.begin())
     {
         return *(--conf);
     }