2021-12-22 23:33:47 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
2022-02-14 10:48:14 +01:00
|
|
|
#include "EspFileSystem.h"
|
2021-12-22 23:33:47 +01:00
|
|
|
|
2022-01-29 00:23:53 +01:00
|
|
|
extern void writeFileUint8tByFrames(const String& filename, uint8_t*& big_buf, size_t length, size_t headerLenth, size_t frameSize);
|
2022-01-28 23:39:03 +01:00
|
|
|
extern void writeFileUint8tByByte(const String& filename, uint8_t*& payload, size_t length, size_t headerLenth);
|
2021-12-22 23:33:47 +01:00
|
|
|
extern File seekFile(const String& filename, size_t position = 0);
|
|
|
|
|
extern const String writeFile(const String& filename, const String& str);
|
2022-08-24 00:59:44 +02:00
|
|
|
extern const String addFileLn(const String& filename, const String& str);
|
2021-12-22 23:33:47 +01:00
|
|
|
extern const String readFile(const String& filename, size_t max_size);
|
|
|
|
|
extern const String filepath(const String& filename);
|
2022-01-15 23:29:52 +01:00
|
|
|
extern bool cutFile(const String& src, const String& dst);
|
2022-08-25 00:45:17 +02:00
|
|
|
extern size_t countLines(const String filename);
|
|
|
|
|
void removeFile(const String& filename);
|
2022-08-26 00:01:01 +02:00
|
|
|
void cleanDirectory(String path);
|
2022-08-27 00:57:19 +02:00
|
|
|
void saveDataDB(String id, String data);
|
|
|
|
|
String readDataDB(String id);
|
2022-08-27 02:45:02 +02:00
|
|
|
extern void onFlashWrite();
|
|
|
|
|
|
|
|
|
|
String FileList(String path);
|