So, I am using a simple code like
boost::system::error_code ec;
if (!boost::filesystem::create_directory(out_path.parent_path(), ec)) {
std::cerr << "couldn't create directory\n";
std::cerr << ec.message() << "\n";
return -1;
}
I am trying to create directory passing absolute file path as out_path
. The result is, I get into if branch, and the ec.message() returns Success.
I have all rights over the out_path
directory, read, write, execute whatsoever.
I am completely pissed of. I can create the directory with the same very path right from bash, but I cannot using the c++ code I have written.
There is no fail however, when I pass relative pass as out_path
, like "temp", and directory gets created from where the c++ program is run.
Help me please, I really don't understand whats goin on here :(