diff options
author | Tim Keller <geekboy1011@gmail.com> | 2021-11-16 04:32:53 +0000 |
---|---|---|
committer | Tim Keller <geekboy1011@gmail.com> | 2021-12-10 01:18:57 +0000 |
commit | 362a5ef1136399c178cf881f7569e3d291432ec1 (patch) | |
tree | a4545cf46aa38cf5b85bad3c2290a5d6dfc06164 /src/components/fs/FS.cpp | |
parent | 8f46908d387cc4fe3f911bc0ca517719238418ed (diff) |
Added move function
Diffstat (limited to 'src/components/fs/FS.cpp')
-rw-r--r-- | src/components/fs/FS.cpp | 4 |
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); } |