FileSystem class provides a high-level interface for file system operations.
More...
#include <FileSystem.h>
FileSystem class provides a high-level interface for file system operations.
◆ FileSystem()
◆ CreateDirectory() [1/2]
bool FileSystem::CreateDirectory |
( |
const char * | path | ) |
const |
Create a directory
- Parameters
-
path | - path of the directory |
- Returns
- true if successful, false otherwise
◆ CreateDirectory() [2/2]
bool FileSystem::CreateDirectory |
( |
const String & | path | ) |
const |
Create a directory
- Parameters
-
path | - path of the directory |
- Returns
- true if successful, false otherwise
◆ Exists() [1/2]
bool FileSystem::Exists |
( |
const char * | path | ) |
const |
Check if a file exists
- Parameters
-
- Returns
- true if the file exists, false otherwise
◆ Exists() [2/2]
bool FileSystem::Exists |
( |
const String & | path | ) |
const |
Check if a file exists
- Parameters
-
- Returns
- true if the file exists, false otherwise
◆ Mountpoint()
const char * FileSystem::Mountpoint |
( |
| ) |
const |
Get the mount point of the file system
- Returns
- the mount point
◆ Open() [1/2]
FileStream FileSystem::Open |
( |
const char * | path, |
|
|
const char * | mode = FILE_READ, |
|
|
bool | create = false ) const |
Open a file
- Parameters
-
path | - path of the file |
mode | - mode to open the file in (default is read mode) |
create | - whether to create the file if it doesn't exist (default is false) |
- Returns
- a FileStream object for the opened file
◆ Open() [2/2]
FileStream FileSystem::Open |
( |
const String & | path, |
|
|
const char * | mode = FILE_READ, |
|
|
bool | create = false ) const |
Open a file
- Parameters
-
path | - path of the file |
mode | - mode to open the file in (default is read mode) |
create | - whether to create the file if it doesn't exist (default is false) |
- Returns
- a FileStream object for the opened file
◆ Remove() [1/2]
bool FileSystem::Remove |
( |
const char * | path | ) |
const |
Remove a file
- Parameters
-
- Returns
- true if successful, false otherwise
◆ Remove() [2/2]
bool FileSystem::Remove |
( |
const String & | path | ) |
const |
Remove a file
- Parameters
-
- Returns
- true if successful, false otherwise
◆ RemoveDirectory() [1/2]
bool FileSystem::RemoveDirectory |
( |
const char * | path | ) |
const |
Remove a directory
- Parameters
-
path | - path of the directory |
- Returns
- true if successful, false otherwise
◆ RemoveDirectory() [2/2]
bool FileSystem::RemoveDirectory |
( |
const String & | path | ) |
const |
Remove a directory
- Parameters
-
path | - path of the directory |
- Returns
- true if successful, false otherwise
◆ Rename() [1/2]
bool FileSystem::Rename |
( |
const char * | pathFrom, |
|
|
const char * | pathTo ) const |
Rename a file
- Parameters
-
pathFrom | - current path of the file |
pathTo | - new path of the file |
- Returns
- true if successful, false otherwise
◆ Rename() [2/2]
bool FileSystem::Rename |
( |
const String & | pathFrom, |
|
|
const String & | pathTo ) const |
Rename a file
- Parameters
-
pathFrom | - current path of the file |
pathTo | - new path of the file |
- Returns
- true if successful, false otherwise
◆ _impl
The documentation for this class was generated from the following files: