1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00
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
..
2022-01-13 17:50:59 +01:00
2021-12-03 10:12:37 +01:00
2021-12-03 10:12:37 +01:00
2021-10-02 14:45:10 +02:00
2022-02-07 16:13:04 +01:00
2022-01-13 17:50:59 +01:00
2021-12-03 10:12:37 +01:00
2021-12-03 10:12:34 +01:00
2021-12-03 10:12:37 +01:00
2022-02-07 16:16:43 +01:00
2022-01-13 17:50:59 +01:00
2022-02-02 14:44:50 +01:00
2021-12-14 22:53:01 +01:00
2021-12-03 10:12:34 +01:00
2022-01-13 17:50:59 +01:00
2021-11-17 15:31:17 +01:00
2021-12-03 10:12:33 +01:00
2021-10-01 14:44:10 +02:00