Skip to content

Commit 2e744c5

Browse files
committed
ESP32: Use path() instead of name() to keep '/' before filename (me-no-dev#1210)
1 parent f71e3d4 commit 2e744c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SPIFFSEditor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,11 @@ void SPIFFSEditor::handleRequest(AsyncWebServerRequest *request){
463463
output += "{\"type\":\"";
464464
output += "file";
465465
output += "\",\"name\":\"";
466+
#ifdef ESP32
467+
output += String(entry.path());
468+
#else
466469
output += String(entry.name());
470+
#endif
467471
output += "\",\"size\":";
468472
output += String(entry.size());
469473
output += "}";

0 commit comments

Comments
 (0)