aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/fs/FS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/fs/FS.cpp')
-rw-r--r--src/components/fs/FS.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/fs/FS.cpp b/src/components/fs/FS.cpp
index 78b0f5cb..8c98ae34 100644
--- a/src/components/fs/FS.cpp
+++ b/src/components/fs/FS.cpp
@@ -95,7 +95,9 @@ int FS::DirRewind(lfs_dir_t* dir) {
int FS::DirCreate(const char* path) {
return lfs_mkdir(&lfs, path);
}
-
+int FS::Rename(const char* oldPath, const char* newPath){
+ return lfs_rename(&lfs,oldPath,newPath);
+}
int FS::Stat(const char* path, lfs_info* info) {
return lfs_stat(&lfs, path, info);
}