List files store in SPIFFS
Posted: Mon Aug 15, 2022 4:27 pm
Hello,
I would like to list files store in SPIFFS partition. In Arduino world, I do this :
But with IDF, I don’t known how to list these files.
I would like to list files store in SPIFFS partition. In Arduino world, I do this :
Code: Select all
Dir dir = SPIFFS.openDir("");
while (dir.next()) {
Serial.print(dir.fileName());
File f = dir.openFile("r");
Serial.println(f.size());
}