Skip to content

Commit

Permalink
ESP32: Use path() instead of name() to keep '/' before filename (me-n…
Browse files Browse the repository at this point in the history
…o-dev#1210)

(cherry picked from commit 2e744c5)
  • Loading branch information
serek4 committed Nov 19, 2022
1 parent 6edf2ef commit 4fbc06b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SPIFFSEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,11 @@ void SPIFFSEditor::handleRequest(AsyncWebServerRequest *request){
output += "{\"type\":\"";
output += "file";
output += "\",\"name\":\"";
#ifdef ESP32
output += String(entry.path());
#else
output += String(entry.name());
#endif
output += "\",\"size\":";
output += String(entry.size());
output += "}";
Expand Down

0 comments on commit 4fbc06b

Please sign in to comment.