Fixed deletion of non-existing directory leading to a thread-lock

This commit is contained in:
erri120 2020-04-15 20:07:52 +02:00
parent f8321f273a
commit 0bebf440be
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -953,6 +953,9 @@ namespace Wabbajack.Common
/// <param name="path"></param>
public static async Task DeleteDirectory(AbsolutePath path)
{
if (!path.Exists)
return;
var process = new ProcessHelper
{
Path = ((RelativePath)"cmd.exe").RelativeToSystemDirectory(),