Last active
July 10, 2022 07:41
-
-
Save Tech500/313b5dd95492a69d94d3b38058efadcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String str; | |
if (!LittleFS.begin()) | |
{ | |
Serial.println("LittleFS failed to mount !"); | |
} | |
Dir dir = LittleFS.openDir("/"); | |
while (dir.next()) | |
{ | |
String file_name = dir.fileName(); | |
if (file_name.startsWith("LOG")) | |
{ | |
str += "<a href=\""; | |
str += dir.fileName(); | |
str += "\">"; | |
str += dir.fileName(); | |
str += "</a>"; | |
str += " "; | |
str += dir.fileSize(); | |
str += "<br>\r\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment