1 #ifndef DIRECTORY_COMMON_H
2 #define DIRECTORY_COMMON_H
53 std::string
const &
path()
const {
75 explicit operator bool ()
const {
94 return leafname[0] ==
'.' &&
95 (leafname[1] == 0 || (leafname[1] ==
'.' && leafname[2] == 0));
bool good() const
Say whether the directory is in a valid state.
static bool is_dot_name(char const *leafname)
Say whether a file leafname consists of 1 or 2 dots.
void clear_error()
Clear any system error code resulting from an operation on this directory.
struct common::directory encapsulates OS-neutral directory functionality.
directory(std::string const &path)
Explicitly construct a directory given a path.
std::string _abs_path
The absolute pathname of the directory.
unsigned last_error() const
Get the last system error code resulting from an operation on this directory.
Encapsulates a filesystem path.
std::string const & path() const
Get the absolute path of the directory
unsigned _last_error
The last error system code returned by a directory operation.