40 class DirectoryScanner_Impl;
115 bool scan(
const std::string& pathname);
124 bool scan(
const std::string& pathname,
const std::string& pattern);
135 std::shared_ptr<DirectoryScanner_Impl> impl;
DirectoryScanner()
Constructs directory scanner for iterating over a directory.
~DirectoryScanner()
Destructor.
bool scan(const std::string &pathname, const std::string &pattern)
Selects the directory to scan through.
std::string get_pathname()
Gets the pathname of the current file.
bool is_directory()
Returns true if the current file is a directory.
bool next()
Find next file in directory scan.
Directory scanning class.
Definition: directory_scanner.h:58
std::string get_name()
Gets the name of the current file.
int get_size()
Gets the size of the current file.
bool is_hidden()
Returns true if the file is hidden.
std::string get_directory_path()
Gets the directory being scanned.
bool is_readable()
Returns true if the file is readable by the current user.
bool scan(const std::string &pathname)
Selects the directory to scan through.
bool is_writable()
Returns true if the file is writable by the current user.