Plugins: Fix plugin installer

This commit is contained in:
Kukks
2022-04-01 13:20:19 +02:00
parent 4a1580169d
commit e201ddd74c
2 changed files with 5 additions and 1 deletions

View File

@@ -216,6 +216,10 @@ namespace BTCPayServer.Plugins
case "delete":
ExecuteCommand(("enable", command.extension), pluginsFolder, true);
if (File.Exists(dirName))
{
File.Delete(dirName);
}
if (Directory.Exists(dirName))
{
Directory.Delete(dirName, true);