DIR構造体は、f_opendir(), f_readdir()のワーク・エリアとして使用されます。
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;