Switch to std::filesystem

Change-Id: I4d5cab541a094e1260bb4b202c9f18830a2a645b
diff --git a/.jenkins.d/00-deps.sh b/.jenkins.d/00-deps.sh
index 133a373..deb3219 100755
--- a/.jenkins.d/00-deps.sh
+++ b/.jenkins.d/00-deps.sh
@@ -7,7 +7,6 @@
     libboost-chrono-dev
     libboost-date-time-dev
     libboost-dev
-    libboost-filesystem-dev
     libboost-log-dev
     libboost-program-options-dev
     libboost-stacktrace-dev
diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py
index 9899d05..090e65d 100644
--- a/.waf-tools/default-compiler-flags.py
+++ b/.waf-tools/default-compiler-flags.py
@@ -136,7 +136,7 @@
         return {
             'CXXFLAGS': [],
             'LINKFLAGS': [],
-            'DEFINES': ['BOOST_ASIO_NO_DEPRECATED', 'BOOST_FILESYSTEM_NO_DEPRECATED'],
+            'DEFINES': ['BOOST_ASIO_NO_DEPRECATED'],
         }
 
     def getOptimizedFlags(self, conf):
diff --git a/src/logger.hpp b/src/logger.hpp
index d9be745..eeae748 100644
--- a/src/logger.hpp
+++ b/src/logger.hpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2014-2023, Arizona Board of Regents.
+ * Copyright (c) 2014-2024, Arizona Board of Regents.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,14 +22,13 @@
 #define NDNTG_LOGGER_HPP
 
 #include <cstdlib>
+#include <filesystem>
 #include <fstream>
 #include <string>
 #include <string_view>
 
 #include <boost/container/static_vector.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
-#include <boost/filesystem/operations.hpp>
-#include <boost/filesystem/path.hpp>
 
 #include <ndn-cxx/util/time.hpp>
 
@@ -95,9 +94,9 @@
       return;
     }
 
-    boost::filesystem::path logdir(m_logLocation);
-    if (boost::filesystem::exists(logdir)) {
-      if (boost::filesystem::is_directory(logdir)) {
+    std::filesystem::path logdir(m_logLocation);
+    if (std::filesystem::exists(logdir)) {
+      if (std::filesystem::is_directory(logdir)) {
         auto logfile = logdir / (m_module + '_' + instanceId + ".log");
         m_logFile.open(logfile.string(), std::ofstream::out | std::ofstream::trunc);
         if (m_logFile.is_open()) {
diff --git a/wscript b/wscript
index b2544c5..969d18f 100644
--- a/wscript
+++ b/wscript
@@ -24,7 +24,7 @@
     conf.check_cfg(package='libndn-cxx', args=['libndn-cxx >= 0.8.1', '--cflags', '--libs'],
                    uselib_store='NDN_CXX', pkg_config_path=pkg_config_path)
 
-    conf.check_boost(lib='date_time filesystem program_options', mt=True)
+    conf.check_boost(lib='date_time program_options', mt=True)
 
     conf.check_compiler_flags()