1 Jul
2005
1 Jul
'05
4:18 a.m.
Hi all, Input : dir_path \code boost::filesystem::path p(dir_path, boost::filesystem::native); boost::filesystem::directory_iterator i(p), j; while (i != j) { std::cout << i->string(); // Output ++i; } \endcode On Windows XP, If input dir_path is "d:\" , the i->string() returns complete path of all files and directories. BUT, If input dir_path is "d:" , the i->string() returns relative path of all files and directories. Please check if this is desired behaviour or not !! thanks saurabh