|
arduino-emulator
|
ESP32/ESP8266/RP2040 compatible LittleFS which is a directory of the computer: LittleFS.open("/test.txt") opens LITTLEFS_ROOT/test.txt. The files which are uploaded to the microcontroller (e.g. the data folder of the sketch) can be used directly. More...
#include <LittleFS.h>
Public Member Functions | |
| bool | begin (bool formatOnFail=false, const char *basePath="/littlefs", uint8_t maxOpenFiles=10, const char *partitionLabel="spiffs") |
| Public Member Functions inherited from DirectoryFS | |
| DirectoryFS (const char *envName, const char *defaultRoot) | |
| bool | beginRoot () |
| Determines the root directory: the environment variable or the default. | |
| void | end () |
| bool | exists (const char *path) |
| bool | format () |
| const char * | getRoot () |
| bool | mkdir (const char *path) |
| File | open (const char *path, const char *mode="r", bool create=false) |
| Opens a file: mode "r", "w", "a", "r+", "w+" or "a+". | |
| bool | remove (const char *path) |
| bool | rename (const char *from, const char *to) |
| bool | rmdir (const char *path) |
| void | setRoot (const char *dir) |
| Changes the root directory. | |
| size_t | totalBytes () |
| size_t | usedBytes () |
Additional Inherited Members | |
| Protected Member Functions inherited from DirectoryFS | |
| std::string | fullPath (const char *path) |
| Static Protected Member Functions inherited from DirectoryFS | |
| static int | toFlags (const char *mode) |
| Protected Attributes inherited from DirectoryFS | |
| const char * | default_root |
| const char * | env_name |
| std::string | root |
ESP32/ESP8266/RP2040 compatible LittleFS which is a directory of the computer: LittleFS.open("/test.txt") opens LITTLEFS_ROOT/test.txt. The files which are uploaded to the microcontroller (e.g. the data folder of the sketch) can be used directly.