FatFS file size: what value to use?
Dear all,
I'm using the FatFS generated by STM32CubeMX and I have one question about file size:
I'm using f_stat functionand read the file size from fsize field of FILINFO structure; when I open a file I can read the file size from obj.objsize field of FIL structure.
I have seen that the value is calculate differently but the value it's the same.
Is it possible to use the FIL structure field or is it recommended to use the FILEINFO field because in some cases the value may not be correct?
Thanks in advance.
Luca G.
