Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
FS Class Referencefinal

Class for file system operations in Rishka applications. More...

#include <fs.h>

Static Public Member Functions

static bool mkdir (const char *path)
 Create a directory with the specified path. More...
 
static bool rmdir (const char *path)
 Remove a directory with the specified path. More...
 
static bool remove (const char *path)
 Remove a file with the specified path. More...
 
static bool exists (const char *path)
 Check if a file or directory exists at the specified path. More...
 

Detailed Description

Class for file system operations in Rishka applications.

The FS class provides static methods for performing file system operations, such as creating, deleting, and checking the existence of directories and files.

Member Function Documentation

◆ exists()

bool FS::exists ( const char *  path)
static

Check if a file or directory exists at the specified path.

This method checks if a file or directory exists at the given path.

Parameters
pathThe path to check.
Returns
True if a file or directory exists at the specified path, false otherwise.

◆ mkdir()

bool FS::mkdir ( const char *  path)
static

Create a directory with the specified path.

This method creates a directory with the given path.

Parameters
pathThe path of the directory to create.
Returns
True if the directory was successfully created, false otherwise.

◆ remove()

bool FS::remove ( const char *  path)
static

Remove a file with the specified path.

This method removes a file with the given path.

Parameters
pathThe path of the file to remove.
Returns
True if the file was successfully removed, false otherwise.

◆ rmdir()

bool FS::rmdir ( const char *  path)
static

Remove a directory with the specified path.

This method removes a directory with the given path.

Parameters
pathThe path of the directory to remove.
Returns
True if the directory was successfully removed, false otherwise.

The documentation for this class was generated from the following files: