mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6a361795ee
`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. |
||
---|---|---|
.. | ||
fs | ||
doc.txt | ||
Makefile | ||
Makefile.include |