mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Verify File.Delete exception handling
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
9221435bad
commit
04bd9ddc2c
1 changed files with 8 additions and 1 deletions
|
|
@ -183,7 +183,14 @@ namespace Flow.Launcher.Core.Plugin
|
|||
const string binding = "flowlauncher.py";
|
||||
foreach (var subDirectory in Directory.GetDirectories(DataLocation.PluginsDirectory))
|
||||
{
|
||||
File.Delete(Path.Combine(subDirectory, binding));
|
||||
try
|
||||
{
|
||||
File.Delete(Path.Combine(subDirectory, binding));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
API.LogDebug(ClassName, $"Failed to delete {binding} in {subDirectory}: {e.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue