FabGL
ESP32 Display Controller and Graphics Library

◆ mountSPIFFS()

bool mountSPIFFS ( bool  formatOnFail,
char const *  mountPath,
size_t  maxFiles = 4 
)
static

Mounts filesystem on SPIFFS (Flash)

Parameters
formatOnFailFormats SD Card when it cannot be mounted.
mountPathMount directory (ex. "/spiffs").
maxFilesNumber of files that can be open at the time (default 4).
Returns
Returns True on success.

Example:

// Mount SD Card
FileBrowser::mountSPIFFS(false, "/spiffs");

Definition at line 1280 of file fabutils.cpp.