| Hmm... this isn't C++, but on *nix systems there are opendir(), readdir(), scandir(), seekdir() and closedir().
opendir() returns a DIR*, which readdir() (and the other functions) uses to see which files are placed in the opened directory. And in case, if the filename is another directory.. So I guess with a few loops you could walk through an entire directory structure, based on the file types found in matching directories. |