| 695 | } |
| 696 | |
| 697 | int 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 | |
| 711 | int FileSystem::readdir(DirHandle dir, Stat& stat) |
| 712 | { |
no test coverage detected