|
Arduino Posix Filesystems
|
Dedicated File System for PROGMEM memory files. More...
#include <FileSystemMemory.h>
Public Member Functions | |
| FileSystemMemory (const char *path) | |
| virtual bool | is_readonly () |
| void | setFileSystemForSearch () |
| Selects the actual File System to be used for directory searches. | |
| bool | isValidFile (const char *path) override |
| file is valid if it has been added More... | |
| bool | add (const char *name, const void *data, size_t len) |
| adds a in memory file | |
| RegEntry & | get (const char *path) |
| Determines the regentry by name. | |
| size_t | size () |
| number of file entries | |
| bool | isEmpty () |
| Returns true if there are no files. | |
| int | open (const char *path, int flags, int mode) override |
| file operations More... | |
| ssize_t | write (int fd, const void *data, size_t size) override |
| write: not suported More... | |
| ssize_t | read (int fd, void *data, size_t size) override |
| off_t | tell (int fd) override |
| int | close (int fd) override |
| int | fstat (int fd, struct stat *st) override |
| int | stat (const char *path, struct stat *st) override |
| off_t | lseek (int fd, off_t offset, int whence) override |
| DIR * | opendir (const char *name) override |
| dirent * | readdir (DIR *dir) override |
| int | closedir (DIR *dir) override |
| int | unlink (const char *path) override |
| virtual void * | mem_map (const char *path, size_t *p_size) override |
| const char * | name () override |
Public Member Functions inherited from file_systems::FileSystemBase | |
| FileSystemBase (const char *path) | |
| Constructor for a new file system. More... | |
| virtual const char * | pathPrefix () |
| Provides the path for all relevant files managed by this file system. | |
| virtual bool | isValidFile (const char *path) |
| Checks if the file is managed by this file system. More... | |
| operator bool () | |
| virtual const char * | name () |
| virtual int | open (const char *path, int flags, int mode) |
| virtual ssize_t | write (int fd, const void *data, size_t size) |
| virtual ssize_t | read (int fd, void *data, size_t size) |
| virtual int | close (int fd) |
| virtual int | fstat (int fd, struct stat *st) |
| virtual int | stat (const char *pathname, struct stat *statbuf) |
| virtual off_t | lseek (int fd, off_t offset, int mode) |
| virtual off_t | tell (int fd) |
| virtual DIR * | opendir (const char *name) |
| virtual dirent * | readdir (DIR *pdir) |
| virtual int | closedir (DIR *pdir) |
| virtual int | unlink (const char *path) |
| virtual void * | mem_map (const char *path, size_t *p_size) |
| virtual bool | is_readonly () |
Protected Member Functions | |
| RegEntry & | getEntry (int fd) |
| RegEntry & | getEntry (const char *fileName) |
| bool | isDir (const char *fileName) |
| RegContentMemory * | getContent (RegEntry &entry) |
| int | statContent (bool isDir, const char *fileName, RegContentMemory *p_memory, struct stat *st) |
Protected Member Functions inherited from file_systems::FileSystemBase | |
| virtual int | filenameOffset () |
| The ESP32 is removing the path prefix for all file processing. | |
| const char * | internalFileName (const char *name, bool withPrefix) |
Protected Attributes | |
| Vector< RegEntry * > | files |
| bool | api_files_with_prefix |
| MBEDFileSystem * | p_mbed = nullptr |
Protected Attributes inherited from file_systems::FileSystemBase | |
| const char * | path_prefix = "@" |
| int | filename_offset = 0 |
| esp_vfs_t | myfs |
Additional Inherited Members | |
Static Public Member Functions inherited from file_systems::FileSystemBase | |
| static const char * | standardName (const char *name) |
| file name w/o leading / | |
Dedicated File System for PROGMEM memory files.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlinevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
file is valid if it has been added
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
file operations
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
Reimplemented from file_systems::FileSystemBase.
|
inlineoverridevirtual |
write: not suported
Reimplemented from file_systems::FileSystemBase.