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

Method rewinddir

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

Source from the content-addressed store, hash-verified

695}
696
697int FileSystem::rewinddir(DirHandle dir)
698{
699 GET_FILEDIR()
700
701 SPIFFS_closedir(&d->d);
702 d->directories.setLength(0);
703 if(SPIFFS_opendir(handle(), nullptr, &d->d) == nullptr) {
704 int err = SPIFFS_errno(handle());
705 return translateSpiffsError(err);
706 }
707
708 return FS_OK;
709}
710
711int FileSystem::readdir(DirHandle dir, Stat& stat)
712{

Callers 1

fileRewindDirFunction · 0.80

Calls 2

translateSpiffsErrorFunction · 0.85
setLengthMethod · 0.80

Tested by

no test coverage detected