21 for (i = 0; path[i]; i++) ;
26 if (fno.
fname[0] ==
'.')
continue;
29 path[i+j] = fno.
fname[j];
30 while (fno.
fname[j++]);
32 fr = empty_directory(path);
33 if (fr !=
FR_OK)
break;
36 if (fr !=
FR_OK)
break;
58 fr = empty_directory(buff);
61 printf(
"Function failed. (%u)\n", fr);
64 printf(
"All contents in the %s are successfully removed.\n", buff);
FRESULT f_opendir(DIR *dp, const TCHAR *path)
Create a Directory Object.
FRESULT
File function return code.
Directory object structure.
File system object structure.
FRESULT f_mount(FATFS *fs, const TCHAR *path, BYTE opt)
Mount/Unmount a Logical Drive.
FRESULT f_unlink(const TCHAR *path)
Delete a File or Directory.
FRESULT f_readdir(DIR *dp, FILINFO *fno)
Read Directory Entries in Sequence.