For my current project I use the SdFat library (1.0.5) and the File library.
All functions run without problems. However, I still have to write a function to determine the file names. It is obvious to me that the function "name ()" of the class "File" does not work.
#include "SdFat.h" ... SdFat sd; ... String dirName = "/"; File file = sd.open(dirName, O_READ); Serial.println("dir: " + (String)file.name());
I get the message:
dir: use getName()
LoL, but the File Class does not have any method named getName()!!! How to solve this Problem?
By the way: I use the File class instead of the SdFile class because it actually offers everything and is well documented!