Remove boost dependency
[platform/core/appfw/app-installers.git] / src / pkg_initdb / manifest_loader.cc
index 96ad6a3..c2f7c08 100644 (file)
@@ -2,32 +2,30 @@
 // Use of this source code is governed by an apache-2.0 license that can be
 // found in the LICENSE file.
 
-#include <boost/filesystem/path.hpp>
-#include <boost/filesystem/operations.hpp>
-
 #include <tzplatform_config.h>
 
 #include <tpk_manifest_handlers/package_handler.h>
 #include <tpk_manifest_handlers/tpk_config_parser.h>
 
+#include <filesystem>
 #include <iostream>
 #include <list>
 #include <string>
 
 #include "pkg_initdb/manifest_loader.h"
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 ManifestLoader::ManifestLoader(const std::string& path) {
-  path_ = bf::path(path);
+  path_ = fs::path(path);
 }
 
 std::list<ManifestInfo> ManifestLoader::LoadManifest() {
   std::list<ManifestInfo> list;
   std::cerr << "Loading manifest files from " << path_ << std::endl;
-  for (bf::directory_iterator iter(path_); iter != bf::directory_iterator();
+  for (fs::directory_iterator iter(path_); iter != fs::directory_iterator();
        ++iter) {
-    if (!bf::is_regular_file(iter->path()))
+    if (!fs::is_regular_file(iter->path()))
       continue;
 
     tpk::parse::TPKConfigParser parser;