Lines Matching defs:fr
16 FRESULT fr;
20 fr = f_opendir(&dir, path); /* Open the sub-directory to make it empty */
21 if (fr != FR_OK) return fr;
27 fr = f_readdir(&dir, fno); /* Get a directory item */
28 if (fr != FR_OK || !fno->fname[0]) break; /* End of directory? */
32 fr = 100; break; /* Fails with 100 when buffer overflow */
37 fr = delete_node(path, sz_buff, fno);
39 fr = f_unlink(path);
41 if (fr != FR_OK) break;
47 if (fr == FR_OK) fr = f_unlink(path); /* Delete the empty sub-directory */
48 return fr;
56 FRESULT fr;
68 fr = delete_node(buff, sizeof buff / sizeof buff[0], &fno);
71 if (fr) {
72 _tprintf(_T("Failed to delete the directory. (%u)\n"), fr);
73 return fr;