std::filesystem::filesystem_error::path1, std::filesystem::filesystem_error::path2

From cppreference.com
 
 
 
filesystem_error
Member functions
filesystem_error::path1filesystem_error::path2
Inherited from std::system_error
 
const std::filesystem::path& path1() const noexcept;
(since C++17)
const std::filesystem::path& path2() const noexcept;
(since C++17)

Returns the paths that were stored in the exception object.

Parameters

(none)

Example