From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-03-16 06:51:10
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
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();
My motivation for this is that
1. the manual implementation of the recursion can require a bit tweaking to
2. other languages seem to provide such features, eg. os.walk() in python.
If people like the idea, I can provide a starting point implementation.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk