This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EFSL how to check bmp files in dir

Hello,

Hello I have interfaced EFSL(SD Card) with LPC1768 and its working fine. But I am not able to check the number of bmp files in current dir.

 ls_openDir(&list ,&(efs.myFs ),"/");

while(ls_getNext(&list)==0)

The above code is for open the dir and get next file list. Please give some thoughts on how to get num of bmp files in current dir.

The EFSL code is at Downloads section of coineltech.com/.../33 "LPC1768 HPLUS Saple Code".

Parents
  • How would you figure out the number of bmp files if looking at a full directory listing on a PC?

    If you know how to iterate through all files in the directory, wouldn't you then be able to use standard string manipulation to figure out which of the files that have an extension ".bmp" or ".BMP" or any other permutation of upper/lower case?

Reply
  • How would you figure out the number of bmp files if looking at a full directory listing on a PC?

    If you know how to iterate through all files in the directory, wouldn't you then be able to use standard string manipulation to figure out which of the files that have an extension ".bmp" or ".BMP" or any other permutation of upper/lower case?

Children