f_opendir:


1 /*-----------------------------------------------------------------------*/ 2 /* Create a Directroy Object */ 3 /*-----------------------------------------------------------------------*/ 4 5 FRESULT f_opendir ( 6 DIR *dj, /* Pointer to directory object to create */ 7 const TCHAR *path /* Pointer to the directory path */ 8 ) 9 { 10 FRESULT res; 11 DEF_NAMEBUF; 12 13 14 res = chk_mounted(&path, &dj->fs, 0); 15 if (res == FR_OK) { 16 INIT_BUF(*dj); 17 res = follow_path(dj, path); /* Follow the path to the directory */ 18 FREE_BUF(); 19 if (res == FR_OK) { /* Follow completed */