File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ static bool isSpiffsFilenameValid(const char* name) {
495
495
if (name == nullptr )
496
496
return false ;
497
497
auto len = strlen (name);
498
- return len > 0 && len <= SPIFFS_OBJ_NAME_LEN;
498
+ return len > 0 && len < SPIFFS_OBJ_NAME_LEN;
499
499
}
500
500
501
501
// these symbols should be defined in the linker script for each flash layout
Original file line number Diff line number Diff line change @@ -169,8 +169,14 @@ struct FSInfo {
169
169
};
170
170
```
171
171
172
- This is the structure which may be filled using FS::info method. Field names
173
- are self-explanatory.
172
+ This is the structure which may be filled using FS::info method.
173
+ - `totalBytes` — total size of useful data on the file system
174
+ - `usedBytes` — number of bytes used by files
175
+ - `blockSize` — SPIFFS block size
176
+ - `pageSize` — SPIFFS logical page size
177
+ - `maxOpenFiles` — max number of files which may be open simultaneously
178
+ - `maxPathLength` — max file name length (including one byte for zero termination)
179
+
174
180
175
181
## Directory object (Dir)
176
182
You can’t perform that action at this time.
0 commit comments