All Filesystem and Path Operations
All Filesystem and Path Operations
A compact index of path manipulation, directory traversal, status queries, and file operations from the standard filesystem library.
All Filesystem and Path Operations
A compact index of path manipulation, directory traversal, status queries, and file operations from the standard filesystem library.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
std::filesystem::pathstd::filesystem::directory_entrystd::filesystem::directory_iteratorstd::filesystem::recursive_directory_iteratorstd::filesystem::file_statusstd::filesystem::filesystem_errorexistsstatussymlink_statusis_regular_file, is_directory, is_symlinkfile_sizelast_write_timecreate_directory, create_directoriesremove, remove_allrenamecopy, copy_fileresize_filepermissionsspacetemp_directory_pathstd::filesystem::path instead of manual string joining.std::error_code overloads.#include <filesystem>
int main() {
std::filesystem::path root{"content/tutorials"};
auto full = root / "getting-started.md";
return full.extension() == ".md" ? 0 : 1;
}