how to list all files in the spiffs file system.
Posted: Mon Feb 29, 2016 6:43 pm
How can I list all of the files in the spiffs file system.
I tried the following code. Is there a simple way to list all files stored in spiffs?
I tried the following code. Is there a simple way to list all files stored in spiffs?
Code: Select all
Dir dir = SPIFFS.openDir("");
while (dir.next()) {
Serial.print(dir.fileName());
File f = dir.openFile("r");
Serial.println(f.size());
}