#include <cstdio> #include <filesystem> #include <iostream> int main() { const std::filesystem::path old_p{std::tmpnam(nullptr)}, new_p{std::tmpnam(nullptr)}; try { std::filesystem::rename(old_p, new_p); // throws since old_p does not exist } catch(std::filesystem::filesystem_error const& ex) { std::cout << "what(): " << ex.what() << '\n' << "path1(): " << ex.path1() << '\n' << "path2(): " << ex.path2() << '\n'; } }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4