The DIR structure is used for the work area to read a directory by f_oepndir and f_readdir functions.
typedef struct _DIR {
FATFS* fs; /* Pointer to the owner file system object */
DWORD sclust; /* Start cluster */
DWORD clust; /* Current cluster */
DWORD sect; /* Current sector */
WORD index; /* Current index */
WORD id; /* Sum of owner file system mount ID */
} DIR;
typedef struct _DIR {
FATFS* fs; /* Pointer to the owner file system object */
CLUST sclust; /* Start cluster */
CLUST clust; /* Current cluster */
DWORD sect; /* Current sector */
WORD index; /* Current index */
WORD id; /* Sum of owner file system mount ID */
} DIR;