cancel
Showing results for 
Search instead for 
Did you mean: 

How to return to the first file of directory

LMI2
Lead
Posted on June 17, 2018 at 23:37

This is more of FatFs question. I cannot find a call to reopen or return to the first file of a directory. I think I have used such call somewhere. So Windows probably had such a call. Like f_close and then f_open with the same directory. I'll try F_findfirst and some other things if I get no answers but if some knows the answer immediately, I could save myself some work.

2 REPLIES 2
Posted on June 18, 2018 at 00:11

f_opendir(), f_readdir();

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Tilen MAJERLE
ST Employee
Posted on June 18, 2018 at 08:15

Hello,

if you want to open folder and read first item, use combination as mentioned by

Turvey.Clive.002

‌. In case you want to read first item with specific name, use

f_findfirst function.