Search code examples
c++windowsdiskfat32

Which is the fastest way to scan files in FAT32 disk?


I want to scan FAT32 disk (I just need file path and file name) as soon as possible in C++, Scan every files on FAT32 disk. Is there any API to do this?


Solution

  • Check this thread: How can I quickly enumerate directories on Win32?

    It actually describes FindFirstFile/FindNextFile, but if you need it faster you should go Kernel.
    The index solution described in the thread will however not work for FAT32 systems - credit MSalters