FAT32 - parse root directory
Posted: Fri Dec 27, 2013 8:13 am
Hi friends!
I'm trying to parse the root directory of FAT32 in order to get a dir list in the root folder. I'm writing in C++.
So I need to go over all the directory entries in the root directory and parse them.
My problem is that I don't know when to stop the iteration - How to get the size of the root directory?
I noticed that there is a byte in the boot sector - the number of the entries in the root - but in FAT32 the value is always 0, So how can i get the size of the directory?
Please help me,
Thanks!
I'm trying to parse the root directory of FAT32 in order to get a dir list in the root folder. I'm writing in C++.
So I need to go over all the directory entries in the root directory and parse them.
My problem is that I don't know when to stop the iteration - How to get the size of the root directory?
I noticed that there is a byte in the boot sector - the number of the entries in the root - but in FAT32 the value is always 0, So how can i get the size of the directory?
Please help me,
Thanks!