C++17 Filesystem

PHOTO EMBED

Tue Apr 20 2021 12:44:20 GMT+0000 (Coordinated Universal Time)

Saved by @markefontenot

namespace fs = std::experimental::filesystem;

fs::path pathToShow(/* ... */);
cout << "exists() = " << fs::exists(pathToShow) << "\n"
     << "root_name() = " << pathToShow.root_name() << "\n"
     << "root_path() = " << pathToShow.root_path() << "\n"
     << "relative_path() = " << pathToShow.relative_path() << "\n"
     << "parent_path() = " << pathToShow.parent_path() << "\n"
     << "filename() = " << pathToShow.filename() << "\n"
     << "stem() = " << pathToShow.stem() << "\n"
     << "extension() = " << pathToShow.extension() << "\n";
content_copyCOPY

https://www.codingame.com/playgrounds/5659/c17-filesystem