$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Saurabh Sood (ssoodd_at_[hidden])
Date: 2005-06-30 23:18:14
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