fenbf / cppstories-discussions

4 stars 1 forks source link

2024/common-filesystem-cpp20/ #143

Open utterances-bot opened 3 months ago

utterances-bot commented 3 months ago

22 Common Filesystem Tasks in C++20 - C++ Stories

Working with the filesystem can be a daunting task, but it doesn’t have to be. In this post, I’ll walk you through some of the most common filesystem operations using the powerful features introduced in C++17, as well as some new enhancements in C++20/23. Whether you’re creating directories, copying files, or managing permissions, these examples will help you understand and efficiently utilize the std::filesystem library.

https://www.cppstories.com/2024/common-filesystem-cpp20/

2kaud commented 3 months ago

Note that for permissions, projections of POSIX permissions (as used by std::filesystem) onto Windows permissions can/will prove problematic as there's no direct equivalence. For Windows use std::filesystem::permissions with care.