 |
ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
|
Go to the documentation of this file.
21 #ifndef _ESP_FILESYSTEM_H
22 #define _ESP_FILESYSTEM_H
23 #include "../../include/esp3d_config.h"
26 #define ESP_FLASH_FS_HEADER "/FS"
28 #define ESP_MAX_OPENHANDLE 4
33 ESP_File(
void * handle =
nullptr,
bool isdir =
false,
bool iswritemode =
false,
const char * path =
nullptr);
36 operator bool()
const;
38 const char*
name()
const;
46 size_t write(uint8_t i);
47 size_t write(
const uint8_t *buf,
size_t size);
49 size_t read(uint8_t* buf,
size_t size);
79 static bool exists(
const char* path);
80 static bool remove(
const char *path);
81 static bool mkdir(
const char *path);
82 static bool rmdir(
const char *path);
83 static bool rename(
const char *oldpath,
const char *newpath);
94 #endif //ESP_FILESYSTEM_H
static const char * FilesystemName()
ESP_File & operator=(const ESP_File &other)
const char * name() const
static size_t usedBytes()
static bool remove(const char *path)
static size_t totalBytes()
static bool mkdir(const char *path)
const char * filename() const
static size_t max_update_size()
static bool rmdir(const char *path)
static bool rename(const char *oldpath, const char *newpath)
static size_t freeBytes()
ESP_File(void *handle=nullptr, bool isdir=false, bool iswritemode=false, const char *path=nullptr)
static String & formatBytes(uint64_t bytes)
static bool exists(const char *path)
static ESP_File open(const char *path, uint8_t mode=ESP_FILE_READ)