The f_opendir opens a directory.
FRESULT f_opendir ( DIR* DirObject, // Pointer to blank directory object structure const char* DirName // Pointer to the directory name );
The f_opendir opens a directory and initializes the DirObject structure for subsequent calls. The directory object structure can be discarded at any time. This function is not supported in minimum configuration.