28 [[nodiscard]]
struct dirent*
getEntry();
32 [[nodiscard]]
bool isValid()
const {
return dir !=
nullptr; }
Simple wrapper around opendir() / readdir() / closedir() functions.
struct dirent * getEntry()
Get directory entry for next file.
ReadDir & operator=(const ReadDir &)=delete
bool isValid() const
Is the given directory valid (does it exist)?
ReadDir(const ReadDir &)=delete
Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string.
This file implemented 3 utility functions: