std::filesystem is a C++17 feature and ROS2 Dashing and Foxy both target C++14.
std::filesystem
Autoware.Auto should provide a standardized std::filesystem replacement.