summaryrefslogtreecommitdiff
path: root/src/components/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/fs')
-rw-r--r--src/components/fs/FS.cpp4
-rw-r--r--src/components/fs/FS.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/components/fs/FS.cpp b/src/components/fs/FS.cpp
index 353193dc..d30b7373 100644
--- a/src/components/fs/FS.cpp
+++ b/src/components/fs/FS.cpp
@@ -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) {
diff --git a/src/components/fs/FS.h b/src/components/fs/FS.h
index ccff2409..e50ff10a 100644
--- a/src/components/fs/FS.h
+++ b/src/components/fs/FS.h
@@ -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: