Skip to content
Snippets Groups Projects
Commit c78d4ad1 authored by Marco De Marco's avatar Marco De Marco
Browse files

File folder permission denied fix

parent d7f2e32d
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,15 @@ FileWrapper::FileWrapper(Tango::DeviceImpl* deviceImpl_p, ...@@ -25,8 +25,15 @@ FileWrapper::FileWrapper(Tango::DeviceImpl* deviceImpl_p,
m_outputFilePath /= fileStream.str(); m_outputFilePath /= fileStream.str();
try
{
if(!boost::filesystem::exists(m_outputFilePath)) if(!boost::filesystem::exists(m_outputFilePath))
boost::filesystem::create_directories(m_outputFilePath); boost::filesystem::create_directories(m_outputFilePath);
}
catch(boost::filesystem::filesystem_error& ex)
{
throw std::logic_error(ex.what());
}
if(!boost::filesystem::is_directory(m_outputFilePath)) if(!boost::filesystem::is_directory(m_outputFilePath))
throw std::logic_error("Destination path \'" throw std::logic_error("Destination path \'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment