add size to returned file data

This commit is contained in:
me-no-dev
2016-11-13 15:34:58 +02:00
parent 3eb639b027
commit 41c57bcdd1

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 += "]";