#include <stdir.h>
Inheritance diagram for StDir:
Public Member Functions | |
StDir () | |
StDir (const StString &path) | |
StDir (const char *path) | |
void | setPath (const StString &path) |
StString | getPath () const |
StPermission | getPermissions () const |
bool | exists () const |
bool | isDirectory () const |
bool | create (const StString &str="", bool resursively=false) |
StValueList< StFile > | read () const |
void | operator= (const StString &path) |
void | operator= (const char *path) |
operator StString () const | |
Protected Attributes | |
StString | path |
Enable the creation of directories, get their permissions, and check if the path exists, and whether or not it is a directory.
StDir::StDir | ( | ) | [inline] |
StDir::StDir | ( | const StString & | path | ) | [inline] |
StDir::StDir | ( | const char * | path | ) | [inline] |
bool StDir::create | ( | const StString & | str = "" , |
|
bool | resursively = false | |||
) |
Create the directory
str | - directory to create | |
resursively | - if directory should by created recursively |
bool StDir::exists | ( | ) | const |
Check if the current path exist
StString StDir::getPath | ( | ) | const [inline] |
Get the current path
StPermission StDir::getPermissions | ( | ) | const [inline] |
bool StDir::isDirectory | ( | ) | const |
Check if the current path is a directory
void StDir::operator= | ( | const char * | path | ) | [inline] |
Set the current path to this which is passed in argument
void StDir::operator= | ( | const StString & | path | ) | [inline] |
Set the current path to this which is passed in argument
StValueList< StFile > StDir::read | ( | ) | const |
Get the list of files in current directory
void StDir::setPath | ( | const StString & | path | ) | [inline] |
Set the current path
StString StDir::path [protected] |