0

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?

Clifford
  • 88,407
  • 13
  • 85
  • 165
scorpiozj
  • 2,687
  • 5
  • 34
  • 60
  • ELM Fatfs has an active [user forum](http://elm-chan.org/fsw/ff/bd/), you should ask there perhaps. Note also that 0.08b is not the latest code so you might check for updates too. – Clifford Aug 12 '14 at 08:46
  • question about fatfs has its user forum. – scorpiozj Aug 13 '14 at 01:04

0 Answers0