Boost logo

Boost :

From: Janusz Piwowarski (jpiw_at_[hidden])
Date: 2004-03-16 08:42:55


> I just had a look at boost::filesystem, and it felt really good to use.
> There is one common idiom that might be worth including: recursive
> traversal.
>
> So I would like some like
>
> recursive_directory_iterator i( path( "foo" ) ) , end;
> for( i.set_traversal_mode( files_only ); i != end; ++ i ) // print all
file
> names recursively, default could be both dirs and files
> cout << i->leaf();
>
I like it; i suggest breadth_first_search | depth_first_search extra
traversal modes.

Janusz


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk