40 class DirectoryScanner_Impl;
135 std::shared_ptr<DirectoryScanner_Impl> impl;
Directory scanning class.
Definition: directory_scanner.h:57
bool is_writable()
Returns true if the file is writable by the current user.
bool next()
Find next file in directory scan.
std::string get_pathname()
Gets the pathname of the current file.
bool is_directory()
Returns true if the current file is a directory.
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.
~DirectoryScanner()
Destructor.
DirectoryScanner()
Constructs directory scanner for iterating over a directory.