Found 2 other functions taking a
spiffs_dirent
argument:
Reads a directory into given spifs_dirent struct.
Opens a file by given dir entry. Optimization purposes, when traversing a file system with SPIFFS_readdir a normal SPIFFS_open would need to traverse the filesystem again to find the file, whilst SPIFFS_open_by_dirent already knows where the file resides.