Merge pull request #716 from erri120/delete-empty-dir-fix

Fixed deletion of non-existing directory leading to a deadlock
This commit is contained in:
Timothy Baldridge 2020-04-15 13:19:16 -06:00 committed by GitHub
commit 6a037d932a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(),