MCPcopy Create free account
hub / github.com/SmingHub/Sming / rename

Method rename

Sming/Libraries/Spiffs/src/FileSystem.cpp:814–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814int 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
825int FileSystem::remove(const char* path)
826{

Callers 2

onCommandMethod · 0.80
fileRenameFunction · 0.80

Calls 2

translateSpiffsErrorFunction · 0.85
syncMethod · 0.45

Tested by

no test coverage detected