1 #ifndef DIRECTORY_WIN_H
2 #define DIRECTORY_WIN_H
96 if (
_handle != INVALID_HANDLE_VALUE) {
99 errnum = GetLastError();
100 if (errnum == ERROR_NO_MORE_FILES) {
108 if (
_handle == INVALID_HANDLE_VALUE) {
109 int errnum = GetLastError();
110 if (errnum == ERROR_FILE_NOT_FOUND) {
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.
std::string cur_memb() const
Get the leafname of the current member of the directory.
std::string const & str() const
Get the path as a string.
A utility class to prevent copying of containing class.
WIN32_FIND_DATA _obj_info
Search data updated by FindFirstFile or FindFile()
std::string _abs_path
The absolute pathname of the directory.
void push_back(std::string const &str)
Append a string to the path.
Encapsulates a filesystem path.
bool close()
Close the directory.
std::string next()
Move to the next entry in the directory.
unsigned _last_error
The last error system code returned by a directory operation.
HANDLE _handle
Handle returned by FindFirstFile()
directory(std::string const &path)
Explicitly construct given a path.
struct win::directory encapsulates a MS-Windows specific directory functionality. ...