boost::filesystem create directory fail
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" <
6 Mar
6 Mar
1:15 p.m.
On 3/5/2013 8:25 PM, albert wrote:
I use the code below to create directories, but it fails. What is the correct way to do it? Thanks in advance.
See http://www.boost.org/doc/libs/1_52_0/libs/filesystem/doc/reference.html#crea... Note the plural 'ies". Jeff
4284
Age (days ago)
4284
Last active (days ago)
1 comments
2 participants
participants (2)
-
albert
-
Jeff Flinn