6 Mar
2013
6 Mar
'13
1:25 a.m.
I use the code below to create directories, but it fails. What is the
correct way to do it? Thanks in advance.
try
{
string logdirname("./notexistdir/logdir/");
boost::filesystem::path logdir(logdirname.c_str());
boost::filesystem::file_status s =
boost::filesystem::status(logdir);
if( !boost::filesystem::is_directory(s) )
{
cout<< "not a directory, mkdir" <