mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
add rm command to remove file
This commit is contained in:
parent
0f601752e4
commit
a22c176d45
3 changed files with 18 additions and 0 deletions
|
|
@ -52,6 +52,10 @@ File DataStore::openRead(const char* filename) {
|
|||
#endif
|
||||
}
|
||||
|
||||
bool DataStore::removeFile(const char* filename) {
|
||||
return _fs->remove(filename);
|
||||
}
|
||||
|
||||
bool DataStore::formatFileSystem() {
|
||||
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
|
||||
return _fs->format();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue