ESP32 LittleFS and the Directory Object 'Dir' . Is it missing?
Posted: Sat Aug 10, 2024 10:29 pm
Dear Forum
Trying to port some Esp8266 software to ESP32.
The issue I have is with LittleFS. In the esp8266 I use a type 'Dir', as in
This object then has some properties like filesize, filecreationtime, filename and whether it is directory or a file.
However, when trying to compile this code for ESP32 I get an error 'error: 'Dir' has not been declared'.
And it seems that the info structure is also not defined for esp32
I have searched for 2 hours now, could not find the solution.
What am i missing? The littlefs lib is fixed in the arduino Ide is it not? Or do i have to install another library?
Your input will be appreciated.
Trying to port some Esp8266 software to ESP32.
The issue I have is with LittleFS. In the esp8266 I use a type 'Dir', as in
Code: Select all
Dir dir = LittleFS.openDir(directory);
However, when trying to compile this code for ESP32 I get an error 'error: 'Dir' has not been declared'.
And it seems that the info structure is also not defined for esp32
Code: Select all
FSInfo fs_info_webserver;
LittleFS.info(fs_info_webserver);
I have searched for 2 hours now, could not find the solution.
What am i missing? The littlefs lib is fixed in the arduino Ide is it not? Or do i have to install another library?
Your input will be appreciated.