Loading src/FileWrapper.cpp +9 −2 Original line number Original line Diff line number Diff line Loading @@ -25,8 +25,15 @@ FileWrapper::FileWrapper(Tango::DeviceImpl* deviceImpl_p, m_outputFilePath /= fileStream.str(); m_outputFilePath /= fileStream.str(); if(!boost::filesystem::exists(m_outputFilePath)) try { 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 \'" Loading Loading @@ -152,7 +159,7 @@ void FileWrapper::cleanUp() m_outputFileStream.close(); m_outputFileStream.close(); boost::system::error_code errorCode; boost::system::error_code errorCode; if(boost::filesystem::exists(m_outputFilePath)) if(boost::filesystem::exists(m_outputFilePath)) boost::filesystem::remove(m_outputFilePath, errorCode); boost::filesystem::remove(m_outputFilePath, errorCode); } } Loading Loading
src/FileWrapper.cpp +9 −2 Original line number Original line Diff line number Diff line Loading @@ -25,8 +25,15 @@ FileWrapper::FileWrapper(Tango::DeviceImpl* deviceImpl_p, m_outputFilePath /= fileStream.str(); m_outputFilePath /= fileStream.str(); if(!boost::filesystem::exists(m_outputFilePath)) try { 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 \'" Loading Loading @@ -152,7 +159,7 @@ void FileWrapper::cleanUp() m_outputFileStream.close(); m_outputFileStream.close(); boost::system::error_code errorCode; boost::system::error_code errorCode; if(boost::filesystem::exists(m_outputFilePath)) if(boost::filesystem::exists(m_outputFilePath)) boost::filesystem::remove(m_outputFilePath, errorCode); boost::filesystem::remove(m_outputFilePath, errorCode); } } Loading