1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/littlefs2
Benjamin Valentin 6a361795ee pkg/littlefs*: align readdir() with documentation
`readdir()` should only output the name of the file, but littleFS
adds a leading `/`.

Neither FAT nor Linux will exhibit this behavior.

        struct dirent *entry;
        DIR *dir = opendir(".");
        while ((entry = readdir(dir))) {
                printf("%s\n", entry->d_name);
        }

This results in surprising failures of code that expects filenames
to match that was tested on a different FS, when suddenly there is
a `/` in front of the filename.
2022-02-07 23:25:14 +01:00
..
fs pkg/littlefs*: align readdir() with documentation 2022-02-07 23:25:14 +01:00
doc.txt pkg/littlefs2: Add package for LittleFS v2.x.y 2020-02-20 14:51:45 +01:00
Makefile pkg: silent make commands with RIOT_CI_BUILD=1 2021-03-12 16:05:18 +01:00
Makefile.dep pkg/littlefs2: Add package for LittleFS v2.x.y 2020-02-20 14:51:45 +01:00
Makefile.include pkg/littlefs2: fix compilation with NDEBUG 2021-12-12 13:18:46 +01:00