mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-04-17 11:30:50 +00:00
Catch IO exceptions when trying to remove the existing write-access test file.
This commit is contained in:
parent
f8d7cb3b4a
commit
cf606b0cfe
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue