From 2e744c5c6d258d1fcc68b5554514d739531d8d38 Mon Sep 17 00:00:00 2001 From: steff393 Date: Mon, 10 Oct 2022 21:57:04 +0200 Subject: [PATCH] ESP32: Use path() instead of name() to keep '/' before filename (#1210) --- src/SPIFFSEditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SPIFFSEditor.cpp b/src/SPIFFSEditor.cpp index a84fa87dd..c04a53cd6 100644 --- a/src/SPIFFSEditor.cpp +++ b/src/SPIFFSEditor.cpp @@ -463,7 +463,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 += "}";