C++ (Qt)#include <algorithm>#include <boost/filesystem.hpp> int main() { boost::filesystem::recursive_directory_iterator beg("C:\\"); boost::filesystem::recursive_directory_iterator end; std::vector<boost::filesystem::path> paths; std::copy_if(beg, end, std::back_inserter(paths), !boost::bind(boost::filesystem::is_directory<boost::filesystem::path>, _1) );}