arduino-audio-tools
|
Base class which uses c++ file functions. It is also used as base class for an ESP32 Virtual File System. After initializing the VFS the regular c file operations are supported. More...
#include <VFS.h>
Public Member Functions | |
virtual bool | begin () |
mount the file systems | |
virtual 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) |
virtual 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 | |
const char * | mount_point = "/" |
Str | tmp |
Base class which uses c++ file functions. It is also used as base class for an ESP32 Virtual File System. After initializing the VFS the regular c file operations are supported.
|
inlinevirtual |
mount the file systems
Reimplemented in VFS_LittleFS, VFS_SDMMC, VFS_SDSPI, VFS_SPFFS, and VFS_Multi.
|
inlinevirtual |
unmount the file system
Reimplemented in VFS_LittleFS, VFS_SDMMC, VFS_SDSPI, VFS_SPFFS, and VFS_Multi.
|
inlinevirtual |
provide the mount point (root directory for the file system)
Reimplemented in VFS_LittleFS, VFS_Multi, VFS_SDMMC, VFS_SDSPI, and VFS_SPFFS.