Skip to main content
LMI2
Senior III
June 17, 2018
Question

How to return to the first file of directory

  • June 17, 2018
  • 2 replies
  • 647 views
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.

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    June 17, 2018
    Posted on June 18, 2018 at 00:11

    f_opendir(), f_readdir();

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tilen MAJERLE
    ST Employee
    June 18, 2018
    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.