AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
LittleFSFileSystem Class Reference

File system implementation using LittleFS for embedded targets. More...

Inheritance diagram for LittleFSFileSystem:
IFileSystem

Public Member Functions

bool exists (const char *path) override
 Check if a file exists.
 
bool readFile (const char *path, std::string &content) override
 Read entire file content.
 
bool writeFile (const char *path, const std::string &content) override
 Write content to a file.
 
- Public Member Functions inherited from IFileSystem
virtual ~IFileSystem ()=default
 

Detailed Description

File system implementation using LittleFS for embedded targets.

Definition at line 27 of file littlefs_file_system.cpp.

Member Function Documentation

◆ exists()

bool LittleFSFileSystem::exists ( const char *  path)
inlineoverridevirtual

Check if a file exists.

Parameters
pathPath to the file
Returns
true if file exists, false otherwise

Implements IFileSystem.

Definition at line 30 of file littlefs_file_system.cpp.

◆ readFile()

bool LittleFSFileSystem::readFile ( const char *  path,
std::string &  content 
)
inlineoverridevirtual

Read entire file content.

Parameters
pathPath to the file
contentOutput parameter for file content
Returns
true if successful, false otherwise

Implements IFileSystem.

Definition at line 46 of file littlefs_file_system.cpp.

◆ writeFile()

bool LittleFSFileSystem::writeFile ( const char *  path,
const std::string &  content 
)
inlineoverridevirtual

Write content to a file.

Parameters
pathPath to the file
contentContent to write
Returns
true if successful, false otherwise

Implements IFileSystem.

Definition at line 78 of file littlefs_file_system.cpp.


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