#include <MRDirectory.h>
Public Attributes | |
| std::filesystem::path | dir |
| std::error_code & | ec |
object of this struct can be passed to range-based-for to enumerate all entries in a filesystem directory without throwing exceptions, see https:/// stackoverflow.com/q/67776830/7325599 e.g. std::error_code ec; for ( auto dirEntry : Directory{ std::filesystem::current_path(), ec } ) { ... }