@@ -92,8 +92,9 @@ LittleFS File System Limitations
92
92
--------------------------------
93
93
94
94
The LittleFS implementation for the RP2040 supports filenames of up
95
- to 31 characters + terminating zero (i.e. ``char filename[32] ``), and
96
- as many subdirectories as space permits.
95
+ to 254 characters + terminating zero (i.e. ``char filename[255] `` or
96
+ better ``char filename[LFS_NAME_MAX] `` ), and as many subdirectories
97
+ as space permits.
97
98
98
99
Filenames are assumed to be in the root directory if no initial "/" is
99
100
present.
@@ -372,8 +373,8 @@ rename
372
373
Renames file from ``pathFrom `` to ``pathTo ``. Paths must be absolute.
373
374
Returns *true * if file was renamed successfully.
374
375
375
- info ** DEPRECATED **
376
- ~~~~~~~~~~~~~~~~~~~~
376
+ info
377
+ ~~~~
377
378
378
379
.. code :: cpp
379
380
@@ -382,18 +383,17 @@ info **DEPRECATED**
382
383
383
384
Fills `FSInfo structure <#filesystem-information-structure >`__ with
384
385
information about the file system. Returns ``true `` if successful,
385
- ``false `` otherwise. Because this cannot report information about
386
- filesystemd greater than 4MB, don't use it in new code. Use ``info64 ``
387
- instead which uses 64-bit fields for filesystem sizes.
386
+ ``false `` otherwise. ``ìnfo() `` has been updated to support filesystems
387
+ greater than 4GB and ``FSInfo64 `` and ``info64() `` have been discarded.
388
388
389
389
Filesystem information structure
390
390
--------------------------------
391
391
392
392
.. code :: cpp
393
393
394
394
struct FSInfo {
395
- size_t totalBytes;
396
- size_t usedBytes;
395
+ uint64_t totalBytes;
396
+ uint64_t usedBytes;
397
397
size_t blockSize;
398
398
size_t pageSize;
399
399
size_t maxOpenFiles;
@@ -408,19 +408,6 @@ block size - ``pageSize`` — filesystem logical page size - ``maxOpenFiles``
408
408
``maxPathLength `` — max file name length (including one byte for zero
409
409
termination)
410
410
411
- info64
412
- ~~~~~~
413
-
414
- .. code :: cpp
415
-
416
- FSInfo64 fsinfo;
417
- SDFS.info64(fsinfo);
418
- or LittleFS.info64(fsinfo);
419
-
420
- Performs the same operation as ``info `` but allows for reporting greater than
421
- 4GB for filesystem size/used/etc. Should be used with the SD and SDFS
422
- filesystems since most SD cards today are greater than 4GB in size.
423
-
424
411
setTimeCallback(time_t (\* cb)(void))
425
412
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
426
413
0 commit comments