arduino-audio-tools
|
ESP32 Virtual File System for the LittleFS. The default mount point is "/littlefs" DRAFT implementation: not tested See https://github.com/espressif/esp-idf/tree/master/examples/storage/sd_card/sdspi. More...
#include <VFS_LittleFS.h>
Public Member Functions | |
VFS_LittleFS (const char *mountPoint="/littlefs") | |
bool | begin () |
mount the file systems | |
void | end () |
unmount the file system | |
bool | exists (const char *path) |
bool | exists (const std::string &path) |
bool | mkdir (const char *path) |
bool | mkdir (const std::string &path) |
const char * | mountPoint () |
provides the actual mount point | |
VFSFile | open (const char *file, FileMode mode=VFS_FILE_READ) |
VFSFile | open (const std::string &path, FileMode mode=VFS_FILE_READ) |
bool | remove (const char *path) |
bool | remove (const std::string &path) |
bool | rename (const char *pathFrom, const char *pathTo) |
bool | rename (const std::string &pathFrom, const std::string &pathTo) |
bool | rmdir (const char *path) |
bool | rmdir (const std::string &path) |
void | setMountPoint (const char *mp) |
provide the mount point (root directory for the file system) | |
Protected Member Functions | |
const char * | expand (const char *file) |
expands the file name with the mount point | |
Protected Attributes | |
esp_vfs_littlefs_conf_t | conf |
bool | format_if_mount_failed = true |
int | max_files = 5 |
const char * | mount_point = "/" |
Str | tmp |
ESP32 Virtual File System for the LittleFS. The default mount point is "/littlefs" DRAFT implementation: not tested See https://github.com/espressif/esp-idf/tree/master/examples/storage/sd_card/sdspi.
|
inlinevirtual |
mount the file systems
Reimplemented from VFS.
|
inlinevirtual |
unmount the file system
Reimplemented from VFS.
|
inlinevirtual |
provide the mount point (root directory for the file system)
Implements VFS.