Header Reference: <filesystem>
Header Reference: <filesystem>
The filesystem path type, directory iteration, and file-operation utilities provided by the standard filesystem library.
Header Reference: <filesystem>
The filesystem path type, directory iteration, and file-operation utilities provided by the standard filesystem library.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<filesystem>std::filesystem::pathstd::filesystem::filesystem_error#include <filesystem>
int main() {
std::filesystem::path root = "content";
std::filesystem::path file = root / "about.md";
return file.has_extension() ? 0 : 1;
}