Core class that represents a directory.
More...
Core class that represents a directory.
◆ Directory()
Nz::Directory::Directory |
( |
const String & |
dirPath | ) |
|
Constructs a Directory object with a path.
- Parameters
-
dirPath | Path to the directory |
◆ ~Directory()
Nz::Directory::~Directory |
( |
| ) |
|
Destructs the object and calls Close.
- See also
- Close
◆ Copy()
bool Nz::Directory::Copy |
( |
const String & |
sourcePath, |
|
|
const String & |
destPath |
|
) |
| |
|
static |
Copies the first directory to a new directory path.
- Returns
- true if copy is successful
- Parameters
-
sourcePath | Path of the original directory |
targetPath | Path of the copied directory |
◆ Create()
bool Nz::Directory::Create |
( |
const String & |
dirPath, |
|
|
bool |
recursive = false |
|
) |
| |
|
static |
Creates a directory from a path.
- Returns
- true if creation is successful
- Parameters
-
dirPath | Path of the directory |
recursive | Creates subdirectories |
◆ Exists() [1/2]
bool Nz::Directory::Exists |
( |
| ) |
const |
Checks whether the directory exists.
- Returns
- true if directory exists
◆ Exists() [2/2]
bool Nz::Directory::Exists |
( |
const String & |
dirPath | ) |
|
|
static |
Checks whether the directory exists.
- Returns
- true if directory exists
- Parameters
-
dirPath | Path of the directory |
◆ GetCurrent()
String Nz::Directory::GetCurrent |
( |
| ) |
|
|
static |
Gets the current path of this directory.
- Returns
- Current path
◆ GetCurrentFileRelativeToEngine()
const char * Nz::Directory::GetCurrentFileRelativeToEngine |
( |
const char * |
currentFile | ) |
|
|
static |
Gets this current file relative to the engine.
- Returns
- Path to this file
FIXME: Is this method in the right place ?
◆ GetPath()
String Nz::Directory::GetPath |
( |
| ) |
const |
Gets the path of the directory.
- Returns
- Path of the directory
◆ GetPattern()
String Nz::Directory::GetPattern |
( |
| ) |
const |
Gets the pattern for the path of the directory.
- Returns
- Pattern for the path of the directory
◆ GetResultName()
String Nz::Directory::GetResultName |
( |
| ) |
const |
Gets the result name of the directory.
- Returns
- Resulting name
◆ GetResultPath()
String Nz::Directory::GetResultPath |
( |
| ) |
const |
Gets the result path of the directory.
- Returns
- Resulting path
◆ GetResultSize()
UInt64 Nz::Directory::GetResultSize |
( |
| ) |
const |
Gets the resulting size of the directory.
- Returns
- Size of the directory
◆ IsOpen()
bool Nz::Directory::IsOpen |
( |
| ) |
const |
Checks whether the directory is open.
- Returns
- true if open
◆ IsResultDirectory()
bool Nz::Directory::IsResultDirectory |
( |
| ) |
const |
Checks whether the directory is result.
- Returns
- true if result
◆ NextResult()
bool Nz::Directory::NextResult |
( |
bool |
skipDots = true | ) |
|
Sets the next result in the directory.
- Returns
- true if directory has a next result
- Parameters
-
skipDots | Skips the dots in the path |
◆ Open()
bool Nz::Directory::Open |
( |
| ) |
|
Opens the directory.
- Returns
- true if opening is successful
◆ Remove()
bool Nz::Directory::Remove |
( |
const String & |
dirPath, |
|
|
bool |
emptyDirectory = false |
|
) |
| |
|
static |
Removes the directory.
- Returns
- true if remove is successful
- Parameters
-
dirPath | Path of the directory |
emptyDirectory | Remove recursively |
◆ SetCurrent()
bool Nz::Directory::SetCurrent |
( |
const String & |
dirPath | ) |
|
|
static |
Sets the current directory.
- Returns
- true if directory path exists
- Parameters
-
dirPath | Path of the directory |
◆ SetPath()
void Nz::Directory::SetPath |
( |
const String & |
dirPath | ) |
|
Sets the path of the directory.
- Parameters
-
dirPath | Path of the directory |
◆ SetPattern()
void Nz::Directory::SetPattern |
( |
const String & |
pattern | ) |
|
Sets the pattern of the directory.
- Parameters
-
dirPath | Pattern of the directory |
The documentation for this class was generated from the following files: