2021-06-26 07:33:12 +02:00
|
|
|
#pragma once
|
2021-06-22 23:38:39 +02:00
|
|
|
|
|
|
|
#include <LittleFS.h>
|
|
|
|
|
2021-06-26 10:49:29 +02:00
|
|
|
// some usefull wrappers for Filesystem
|
2021-06-22 23:38:39 +02:00
|
|
|
bool mount_fs();
|
|
|
|
bool format_fs();
|
|
|
|
|
2021-06-26 09:02:55 +02:00
|
|
|
File open(const char * path);
|
|
|
|
|
2021-06-23 01:30:28 +02:00
|
|
|
void ls(const char * dirname);
|
2021-06-26 09:02:55 +02:00
|
|
|
void printFile(const char * path);
|
2021-06-22 23:38:39 +02:00
|
|
|
void writeFile(const char * path, const char * message);
|
|
|
|
void appendFile(const char * path, const char * message);
|
|
|
|
void renameFile(const char * path1, const char * path2);
|
|
|
|
void deleteFile(const char * path);
|