| 812 | } |
| 813 | |
| 814 | int FileSystem::rename(const char* oldpath, const char* newpath) |
| 815 | { |
| 816 | if(isRootPath(oldpath) || isRootPath(newpath)) { |
| 817 | return Error::BadParam; |
| 818 | } |
| 819 | |
| 820 | int err = SPIFFS_rename(handle(), oldpath, newpath); |
| 821 | partition.sync(); |
| 822 | return translateSpiffsError(err); |
| 823 | } |
| 824 | |
| 825 | int FileSystem::remove(const char* path) |
| 826 | { |
no test coverage detected