Boost logo

Boost Users :

From: Meir Yanovich (meiry242_at_[hidden])
Date: 2008-05-15 03:03:53


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_at_[hidden]> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net