Skip to content

Commit

Permalink
Fix uninstallation of manually deleted files and directories
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 14, 2023
1 parent 7bc8aec commit f2279dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Core/ModuleInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,14 @@ private void Uninstall(string identifier, ref HashSet<string> possibleConfigOnly
file_transaction.Delete(absPath);
}
}
catch (FileNotFoundException exc)
{
log.Debug("Ignoring missing file while deleting", exc);
}
catch (DirectoryNotFoundException exc)
{
log.Debug("Ignoring missing directory while deleting", exc);
}
catch (IOException)
{
// "The specified file is in use."
Expand Down

0 comments on commit f2279dd

Please sign in to comment.