Added Delete file

Added FS Stat.
This commit is contained in:
Tim Keller
2021-10-17 23:07:43 +00:00
parent eabbbfa373
commit 3a8e66a52f
4 changed files with 93 additions and 28 deletions

View File

@@ -96,6 +96,10 @@ int FS::DirCreate(const char* path) {
return lfs_mkdir(&lfs, path);
}
int FS::Stat(const char* path, lfs_info* info){
return lfs_stat(&lfs,path,info);
}
// Delete directory and all files inside
int FS::DirDelete(const char* path) {

View File

@@ -28,6 +28,7 @@ namespace Pinetime {
int DirCreate(const char* path);
int DirDelete(const char* path);
int Stat(const char* path, lfs_info* info);
void VerifyResource();
private: