MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Directory Struct Reference

#include <MRMesh/MRDirectory.h>

Public Attributes

std::filesystem::path dir
std::error_code & ec

Friends

DirectoryIterator begin (const Directory &sd)
std::filesystem::directory_iterator end (const Directory &)

Detailed Description

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 } ) { ... }


The documentation for this struct was generated from the following file: