public-espnow2mqtt/002-espnow2mqtt_sender/lib/esp32-Encrypt/examples/esp32Encrypt/SPIFFSTest.h

26 lines
1.2 KiB
C
Raw Normal View History

2024-05-18 14:07:37 +01:00
#ifndef __SPIFFSWeb__
#define __SPIFFSWeb__
#include "SPIFFS.h"
#include "FS.h"
#include <Esp.h>
class CSPIFFS {
public:
void listDir(fs::FS &fs, const char * dirname, uint8_t levels); //Anzeigen der Dateien auf dem SPIFFS
bool fileExists(fs::FS &fs, const char * path); //Teste ob File existiert
void readFile(fs::FS &fs, const char * path); //Lesen der Dateien auf dem SPIFFS
void writeFile(fs::FS &fs, const char * path, String message); //Schreiben von Dateien auf dem SPIFFS
void appendFile(fs::FS &fs, const char * path, String message); //Anhängen von Dateiinhalten an ein bestehdens File im SPIFFS
void renameFile(fs::FS &fs, const char * path1, const char * path2); //Umbennen eines Files
void deleteFile(fs::FS &fs, const char * path); //Löschen eines Files im SPIFFS
void testFileIO(fs::FS &fs, const char * path); //Informationen über Lese- und Schreibprozess
String getFile(fs::FS &fs, const char * path); //Get File as String directly
int getFileSize(fs::FS &fs, const char * path);
private:
};
#endif