MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / remove

Method remove

source/FileSystem/littlefs1/Littlefs1FileSystem.cpp:425–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425int Littlefs1FileSystem::remove(const char* const path)
426{
427 const std::lock_guard<Littlefs1FileSystem> lockGuard {*this};
428
429 assert(mounted_ == true);
430 assert(path != nullptr);
431
432 const auto ret = lfs1_remove(&fileSystem_, path);
433 return littlefs1ErrorToErrorCode(ret);
434}
435
436int Littlefs1FileSystem::rename(const char* const path, const char* const newPath)
437{

Callers 1

generateFunction · 0.45

Calls 2

lfs1_removeFunction · 0.85

Tested by 1

generateFunction · 0.36