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