1 Reply Latest reply on Dec 7, 2017 4:14 AM by himam_31

    emFile - FS_FindNextFile returns wrong file size


      In my project I use FS_FindFirstFile() and FS_FindNextFile() functions in order to list the files on my SD card.

      These functions return FS_FIND_DATA structure. One of its fields is FileSize.

      I can't see any relation between the numbers I get from this field and the actual files sizes, which I see when I plug the SD card into a PC. According to emFile documentation from Segger, FileSize is "U32 value specifies the size of the file" (U32 = unsigned long).


      Anyone else tried to use these functions?