Change-Id: I2dc642bfd18c8d3ddb476fcb086f6e6519d8bc7c
bool exist(const bf::path& path)
{
bs::error_code error;
- bf::exists(path, error);
+ int ret = bf::exists(path, error);
if (error) {
- _ERR("Failed to check %s exists : %s", path.c_str(), error.message().c_str());
- return false;
+ if ((error.value() != bs::errc::success) && (error.value() != bs::errc::no_such_file_or_directory)) {
+ _ERR("Failed to check %s exists : %s", path.c_str(), error.message().c_str());
+ }
}
- return true;
+ return ret;
}
bool createDir(const bf::path& path)