
16 Mar
2004
16 Mar
'04
11:51 a.m.
Hi Beman, 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(); My motivation for this is that 1. the manual implementation of the recursion can require a bit tweaking to get right 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. br Thorsten