Thin C++ wrappers around the oveRTOS filesystem utility functions.
More...
|
| int | mount (const char *dev_path, const char *mount_point) |
| | Mounts a filesystem at the given mount point.
|
| |
| void | unmount (const char *mount_point) |
| | Unmounts a previously mounted filesystem.
|
| |
| int | unlink (const char *path) |
| | Deletes a file from the filesystem.
|
| |
| int | rename (const char *old_path, const char *new_path) |
| | Renames or moves a file or directory.
|
| |
Thin C++ wrappers around the oveRTOS filesystem utility functions.
Available when CONFIG_OVE_FS is enabled. File and directory I/O is handled by the File and Dir RAII classes below.
◆ mount()
| int ove::fs::mount |
( |
const char * |
dev_path, |
|
|
const char * |
mount_point |
|
) |
| |
|
inline |
Mounts a filesystem at the given mount point.
- Parameters
-
| [in] | dev_path | Path to the block device or image file. |
| [in] | mount_point | Directory path at which to mount the filesystem. |
- Returns
OVE_OK on success, or a negative error code.
◆ unmount()
| void ove::fs::unmount |
( |
const char * |
mount_point | ) |
|
|
inline |
Unmounts a previously mounted filesystem.
- Parameters
-
| [in] | mount_point | The mount point path passed to mount(). |
◆ unlink()
| int ove::fs::unlink |
( |
const char * |
path | ) |
|
|
inline |
Deletes a file from the filesystem.
- Parameters
-
| [in] | path | Absolute path to the file. |
- Returns
OVE_OK on success, or a negative error code.
◆ rename()
| int ove::fs::rename |
( |
const char * |
old_path, |
|
|
const char * |
new_path |
|
) |
| |
|
inline |
Renames or moves a file or directory.
- Parameters
-
| [in] | old_path | Current path of the file or directory. |
| [in] | new_path | Desired new path. |
- Returns
OVE_OK on success, or a negative error code.