mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Refactoring of FS::info (#779)
This commit is contained in:
@ -111,6 +111,21 @@ void setup() {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
FSInfo info;
|
||||
if (!SPIFFS.info(info)) {
|
||||
fail("info failed");
|
||||
}
|
||||
Serial.printf("Total: %u\nUsed: %u\nBlock: %u\nPage: %u\nMax open files: %u\nMax path len: %u\n",
|
||||
info.totalBytes,
|
||||
info.usedBytes,
|
||||
info.blockSize,
|
||||
info.pageSize,
|
||||
info.maxOpenFiles,
|
||||
info.maxPathLength
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
if (!SPIFFS.format()) {
|
||||
fail("format failed");
|
||||
|
Reference in New Issue
Block a user