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.

How to use this reference page

Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.

  • Scan the top of the page first to identify the primary types, functions, or algorithm families involved.
  • Use the nearby-page links when your question is really about a companion header, related algorithm family, or broader subsystem.
  • Validate tricky behavior with a small compileable example before relying on memory for details like invalidation, ordering, allocation, or lifetime rules.

All Filesystem and Path Operations

Core types

Path operations

Status and query operations

File and directory operations

Practical rules

Example in practice

#include <filesystem>

int main() {
    std::filesystem::path root{"content/tutorials"};
    auto full = root / "getting-started.md";
    return full.extension() == ".md" ? 0 : 1;
}