#include <File.h>
Public Member Functions | |
| Directory () | |
| ctor. defaults to the current directory | |
| Directory (const Filename &initialPath) | |
| ctor. specify "~" to start in the users home directory | |
| bool | CreateDirectory () const |
| Create a directory if it does not already exist. Returns true if the directory existed or was created. | |
| std::vector< std::string > | GetFiles () const |
| Retrieves a list of files in this directory. | |
| std::vector< std::string > | GetSubDirectories () const |
| Retrieves a list of subdirectories in this directory. | |
| void | StepOut () |
| Changes the directory to one tier above the current directory. | |
| void | StepInto (const std::string &subdir) |
| Steps into a subdirectory of the current directory. It does not have to exist. | |
| operator const std::string & () const | |
| Retrieves a string that represents the current path. | |
| const char * | c_str () const |
| Gets a c string that represents the current path. | |
| Filename | File (const std::string &fname) const |
| Retrieves a Filename(including path) for a file within the current path. | |
| void | SetWorkingDirectory () const |
| Sets the working directory for the app to the path represented by this object. | |
Static Public Member Functions | |
| static Directory | GetWorkingDirectory () |
| Retrieves the working directory of the app. | |
1.5.6