Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1636

Use std::filesystem instead of boost and platform specific implementations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0

    Description

      C++17 support allows us to use std::filesystem instead of the currently equivalent boost library calls. We should also investigate where std::filesystem could be used instead of a platform specific implementations.

      Note: std::filesystem::last_write_time returns std::filesystem::file_time_type which uses a platform dependent clock. This makes it hard to replace the previous implementation as the time since epoch can be different in two systems, the conversion to time_t can be difficult and also out usage of time strings may be problematic. Cpp20 standardizes the std::filesystem::file_time_type with std::chrono::file_clock which solves these problems, so it may be better to implement this when we have full Cpp20 support.

      Attachments

        Issue Links

          Activity

            People

              rustam.ismayilov Rustam Ismayilov
              lordgamez Gábor Gyimesi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m