I am currently looking to display a listing of all folders in a directory and would like a cross platform solution. (Linux, Mac, Windows). I've heard of boost but I fear it is a bit bloated from what I've been told. I also heard that the GCC compiler may have such a utility.

Essentially my simple program would work a bit like the usual "ls" command. Thoughts?

I realize that this is asking quite a bit since POSIX and Windows are different animals when it comes to files.