Skip to content

Filesystem Library ​

Before std::filesystem came along, the C++ standard library had virtually no ability to touch the file system — you had to fall back on POSIX APIs or platform-specific functions. The C++17 filesystem library finally closes that gap, providing cross-platform path handling, file operations, and directory traversal. In this chapter we start with path manipulation, get comfortable with creating, querying, updating, and deleting files and directories, and finish by building a practical directory traversal and search tool.

Chapter Contents ​

pdf-latest-4-g85128cc · 85128cc · 2026-10-05