fatfs v0.10b Mar 19,2014:

- Fixed a hard error in the disk I/O layer can collapse the directory entry.
- Fixed LFN entry is not deleted on delete/rename an object with lossy converted SFN.
This commit is contained in:
savelij13 committed 2025-09-11 10:02:42 +03:00
1 parent 93faa45738
commit fb65f51fbe
64 files changed
+575 -520

No files matched your search

+3 -3
View File
@@ -14,7 +14,7 @@ FRESULT empty_directory (
FILINFO fno;
#if _USE_LFN
fno.lfname = 0; /* Eliminate LFN output */
fno.lfname = 0; /* Disable LFN output */
#endif
fr = f_opendir(&dir, path);
if (fr == FR_OK) {
@@ -23,7 +23,7 @@ FRESULT empty_directory (
for (;;) {
fr = f_readdir(&dir, &fno);
if (fr != FR_OK || !fno.fname[0]) break;
if (fno.fname[0] == '.') continue;
if (_FS_RPATH && fno.fname[0] == '.') continue;
j = 0;
do
path[i+j] = fno.fname[j];
@@ -59,7 +59,7 @@ int main (void)
if (fr) {
printf("Function failed. (%u)\n", fr);
return 1;
return fr;
} else {
printf("All contents in the %s are successfully removed.\n", buff);
return 0;
+1 -1
View File
@@ -6,7 +6,7 @@
/ If the file has been opened without FA_WRITE flag, it only checks if
/ the file is contiguous and returns the resulut. */
#if _FATFS != 29000 /* Check if R0.10a */
#if _FATFS != 8051 /* Check if R0.10b */
#error This function may not be compatible with this revision of FatFs module.
#endif
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 14 KiB