add size to returned file data

This commit is contained in:
me-no-dev committed 2016-11-17 01:33:50 +02:00
1 parent 3eb639b027
commit 41c57bcdd1
1 file changed
+3 -1
+3 -1
View File
@@ -370,7 +370,9 @@ void SPIFFSEditor::handleRequest(AsyncWebServerRequest *request){
output += (isDir)?"dir":"file"; output += (isDir)?"dir":"file";
output += "\",\"name\":\""; output += "\",\"name\":\"";
output += String(entry.name()).substring(1); output += String(entry.name()).substring(1);
output += "\"}"; output += "\",\"size\":";
output += String(entry.size());
output += "}";
entry.close(); entry.close();
} }
output += "]"; output += "]";