how to list files and folder names Boost way ?

Hello all i like to get all folder and files names under giving folder , what will be the optimized way ( if any ) that boost can offer can you point me to example code thanks

Hi, On Wed, May 14, 2008 at 3:38 PM, Meir Yanovich <meiry242@gmail.com> wrote:
Hello all i like to get all folder and files names under giving folder , what will be the optimized way ( if any ) that boost can offer can you point me to example code thanks
I do not know if it is optimized but it is portable. You can use the BOOST::Filesystem library/interface. http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm -dhruva -- Contents reflect my personal views only!

iknow , i just need code sample to do it in the best way On Wed, May 14, 2008 at 3:43 PM, dhruva <dhruvakm@gmail.com> wrote:
Hi,
On Wed, May 14, 2008 at 3:38 PM, Meir Yanovich <meiry242@gmail.com> wrote:
Hello all i like to get all folder and files names under giving folder , what will be the optimized way ( if any ) that boost can offer can you point me to example code thanks
I do not know if it is optimized but it is portable. You can use the BOOST::Filesystem library/interface.
http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm
-dhruva
-- Contents reflect my personal views only! _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hello all i like to get all folder and files names under giving folder , what will be the optimized way ( if any ) that boost can offer can you point me to example code thanks
I do not know if it is optimized but it is portable. You can use the BOOST::Filesystem library/interface.
http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm
iknow , i just need code sample to do it in the best way
recursive_directory_iterator Heres a snippet: for( fs::recursive_directory_iterator it(folder) ; it != fs::recursive_directory_iterator() ; ++it) { if (boost::iequals(fs::extension(it->path()), ".png")){ files.push_back(it->path()); } } -- John

thanks for the fast reply im getting error : error C2039: 'iequals' : is not a member of 'boost' you have any idea why ? thanks On Wed, May 14, 2008 at 8:13 PM, John Femiani <JOHN.FEMIANI@asu.edu> wrote:
Hello all i like to get all folder and files names under giving folder , what will be the optimized way ( if any ) that boost can offer can you point me to example code thanks
I do not know if it is optimized but it is portable. You can use the BOOST::Filesystem library/interface.
http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm
iknow , i just need code sample to do it in the best way
recursive_directory_iterator
Heres a snippet:
for( fs::recursive_directory_iterator it(folder) ; it != fs::recursive_directory_iterator() ; ++it) { if (boost::iequals(fs::extension(it->path()), ".png")){ files.push_back(it->path()); } }
-- John _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
dhruva
-
John Femiani
-
Max
-
Meir Yanovich