Click to See Complete Forum and Search --> : geting full path of files and folders (boost::filesystem)


umen
May 18th, 2008, 01:36 PM
Hello all
im trying to get full path of files and folders.
im using boost::filesystem to loop throw folders
with this :
for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it)
{
string ss = it->leaf();
}
how can i get the full path of ss?
thanks

Duoas
May 18th, 2008, 04:24 PM
http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm

umen
May 19th, 2008, 12:28 AM
yeah i know the site and i try to find the answer there .
but i couldn't.

Duoas
May 19th, 2008, 10:13 AM
You're kidding?

The very second or third example on that page does exactly what you want.