The Fatfs is R0.08b. What I do is detecting whether a dir is existed. I use f_stat
to check the status.
The problem is: if I clear the /root
directory and then call :
sprintf(p, "%s", "0:/testdir"); frs = f_stat(p, NULL);
the frs
will return FR_OK
. And then I can find there is a /testdir
created. However, the /testdir
can't be open until I re-mount the SD card.
Any idea?