mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed deletion of non-existing directory leading to a thread-lock
This commit is contained in:
parent
f8321f273a
commit
0bebf440be
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user