Boost logo

Boost Users :

From: Surya Kiran Gullapalli (suryakiran.gullapalli_at_[hidden])
Date: 2007-06-07 02:00:03


Hello all,
I'm creating a directory using boost::filesystem::create_directory function.

When i looked at the documentation, It said,

Throws: basic_filesystem_error<Path> if Effects fails for any reason
other than because the directory already exists.

Now when i catch the exception like this

try
{
boost::filesystem::create_directory (path)
}
catch (boost::filesystem::basic_filesystem_error <boost::filesystem::path>& e)
{
cout << e.what() << endl ;
}

e.what() returns the string boost::filesystem::create_directory.

What i expect is why the create_directory failed. How can i get the
string describing the problem.

Thanks in advance,
Surya


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