Skip to content

Commit 8cb78f7

Browse files
committed
SPIFFS vs. LittleFS regression fix
1 parent e8d718c commit 8cb78f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

esp8266-fastled-webserver/FSBrowser.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ void handleFileList() {
113113
File entry = dir.openFile("r");
114114
if (output != "[") output += ',';
115115
bool isDir = false;
116+
//bool isDir = entry.isDirectory();
117+
116118
output += "{\"type\":\"";
117119
output += (isDir)?"dir":"file";
118120
output += "\",\"name\":\"";
119-
output += String(entry.name()).substring(1);
121+
output += String(entry.name());
120122
output += "\"}";
121123
entry.close();
122124
}

0 commit comments

Comments
 (0)