1 #ifndef DIRECTORY_NIX_H
2 #define DIRECTORY_NIX_H
94 struct dirent * entry =
nullptr;
std::string const cur_memb() const
Get the leafname of the current member of the directory.
directory(std::string const &path)
Explicitly construct a directory given a path.
std::string next()
Move to the next entry in the directory.
static bool is_dot_name(char const *leafname)
Say whether a file leafname consists of 1 or 2 dots.
bool open()
Open the directory.
struct common::directory encapsulates OS-neutral directory functionality.
A utility class to prevent copying of containing class.
struct dirent _entry
The current entry in this directory.
bool close()
Close the directory.
std::string _abs_path
The absolute pathname of the directory.
Class nix::directory encapsulates linux/unix-specific directory functionality.
Encapsulates a filesystem path.
unsigned _last_error
The last error system code returned by a directory operation.
DIR * _dir
The directory handle of this directory handle.