mirror of https://github.com/ARMmbed/mbed-os.git
fatfs: Fixed ENOTEMPTY error for removing a directory
parent
6d4190bd0b
commit
5efda4b922
|
@ -404,6 +404,10 @@ int FATFileSystem::remove(const char *path)
|
|||
|
||||
if (res != FR_OK) {
|
||||
debug_if(FFS_DBG, "f_unlink() failed: %d\n", res);
|
||||
if (res == FR_DENIED) {
|
||||
printf("hi %d -> %d\n", FR_DENIED, -ENOTEMPTY);
|
||||
return -ENOTEMPTY;
|
||||
}
|
||||
}
|
||||
return fat_error_remap(res);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue