标签: c embedded embedded-linux fat
Fatfs是R0.08b。我所做的是检测目录是否存在。我使用f_stat来检查状态。
f_stat
问题是:如果我清除/root目录,然后调用:
/root
sprintf(p, "%s", "0:/testdir"); frs = f_stat(p, NULL);
frs将返回FR_OK。然后我发现创建了/testdir。但是,在重新安装SD卡之前,/testdir无法打开。
frs
FR_OK
/testdir
有什么想法吗?