 |
ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
|
Go to the documentation of this file.
21 #ifndef _ESP_GLOBAL_FS_H
22 #define _ESP_GLOBAL_FS_H
23 #include "../../include/esp3d_config.h"
24 #include "../../core/esp3doutput.h"
26 #ifdef FILESYSTEM_FEATURE
28 #endif //FILESYSTEM_FEATURE
39 #ifdef FILESYSTEM_FEATURE
41 #endif //FILESYSTEM_FEATURE
46 operator bool()
const;
48 const char*
name()
const;
54 #ifdef FILESYSTEM_FEATURE
56 #endif //FILESYSTEM_FEATURE
63 size_t write(uint8_t i);
64 size_t write(
const uint8_t *buf,
size_t size);
66 size_t read(uint8_t* buf,
size_t size);
71 #ifdef FILESYSTEM_FEATURE
73 #endif //FILESYSTEM_FEATURE
91 static bool exists(
const char* path);
92 static bool remove(
const char *path);
93 static bool mkdir(
const char *path);
94 static bool rmdir(
const char *path);
95 static bool rename(
const char *oldpath,
const char *newpath);
98 static const char *
getNextFS(
bool reset =
false);
99 static uint8_t
getFSType(
const char * path);
101 static const char * getRealPath(
const char * path);
102 static uint8_t _nbFS;
103 static String _rootlist[
MAX_FS];
107 #endif //_ESP_GLOBAL_FS_H
const char * filename() const
static String & formatBytes(uint64_t bytes)
static ESP_GBFile open(const char *path, uint8_t mode=ESP_FILE_READ)
static bool mkdir(const char *path)
ESP_GBFile openNextFile()
static bool remove(const char *path)
static bool exists(const char *path)
const char * shortname() const
static bool rmdir(const char *path)
ESP_GBFile & operator=(const ESP_GBFile &other)
const char * name() const
static bool isavailable(uint8_t FS)
static const char * getNextFS(bool reset=false)
static uint64_t freeBytes(uint8_t FS)
static uint8_t getFSType(const char *path)
static uint64_t totalBytes(uint8_t FS)
static bool rename(const char *oldpath, const char *newpath)
static bool format(uint8_t FS, ESP3DOutput *output=nullptr)
static uint64_t usedBytes(uint8_t FS)