Boost logo

Boost Users :

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


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