debug_showfat() is used to print the FAT table. This visual aid helps in debugging following the cluster chains.

Next: follow cluster chains to find all files in any directory, /boot/grub for starters.
Then, have fat_follow_cluster_chain(int starting_cluster) and use it in fat_readdir("c:/boot/grub")