From 41c57bcdd1c8a2db39ae7aedffeaa23197797273 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sun, 13 Nov 2016 15:34:58 +0200 Subject: [PATCH] add size to returned file data --- src/SPIFFSEditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SPIFFSEditor.cpp b/src/SPIFFSEditor.cpp index 232ac75..612ba65 100644 --- a/src/SPIFFSEditor.cpp +++ b/src/SPIFFSEditor.cpp @@ -370,7 +370,9 @@ void SPIFFSEditor::handleRequest(AsyncWebServerRequest *request){ output += (isDir)?"dir":"file"; output += "\",\"name\":\""; output += String(entry.name()).substring(1); - output += "\"}"; + output += "\",\"size\":"; + output += String(entry.size()); + output += "}"; entry.close(); } output += "]";