Home | All Classes | Grouped Classes | Index | Search
Directory scanning class. More...
Derived from:
none
Derived by:
none
Group: Core (I/O Data)
#include <ClanLib/core.h>
Construction:
Constructs directory scanner for iterating over a directory. |
Attributes:
Gets the directory being scanned. | |
Gets the name of the current file. | |
Gets the size of the current file. | |
Gets the pathname of the current file. | |
Returns true if the current file is a directory. | |
Returns true if the file is hidden. | |
Returns true if the file is readable by the current user. | |
Returns true if the file is writable by the current user. |
Operations:
Selects the directory to scan through. | |
Find next file in directory scan. |
Detailed description:
!group=Core/IO Data! !header=core.h!CL_DirectoryScanner is used to parse through directory trees and return information about files.
Example that prints all files and directories found in the root directory:
CL_DirectoryScanner scanner; if (scanner.scan("/", "*")) { while (scanner.next()) { std::cout << scanner.get_name() << std::endl; } }