";
if (nbrFiles != 0) {
response += "";
}
+#ifdef ESP32
+ response += "
Nombre de traces: " + String(nbrFiles) + "
Taille totale: " + String(totalSize);
+ response += "
Espace disponible: " + String(LittleFS.totalBytes()) + "
Espace utilisé: " + String(LittleFS.usedBytes()) ;
+#else
FSInfo fs_info;
if (LittleFS.info(fs_info)) {
size_t totalBytes;
size_t usedBytes;
response += "
Nombre de traces: " + String(nbrFiles) + "
Taille totale: " + String(totalSize);
- response += "
totalBytes: " + String(fs_info.totalBytes) + "
usedBytes: " + String(fs_info.usedBytes) ;
+ response += "
Espace disponible: " + String(fs_info.totalBytes) + "
Espace utilisé: " + String(fs_info.usedBytes) ;
}
else {
response += "
Erreurs dans le système de fichier ";
}
+#endif
response += "