Catch IO exceptions when trying to remove the existing write-access test file.

This commit is contained in:
Robert Knight 2011-08-22 17:00:15 +01:00
parent f8d7cb3b4a
commit cf606b0cfe

View file

@ -268,7 +268,15 @@ void UpdateInstaller::removeBackups()
bool UpdateInstaller::checkAccess()
{
std::string testFile = m_installDir + "/update-installer-test-file";
FileOps::removeFile(testFile.c_str());
try
{
FileOps::removeFile(testFile.c_str());
}
catch (const FileOps::IOException& error)
{
LOG(Info,"Removing existing access check file failed " + std::string(error.what()));
}
try
{