mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2025-07-25 04:43:58 +00:00
Fixed deletion of non-existing directory leading to a thread-lock
This commit is contained in:
@ -953,6 +953,9 @@ namespace Wabbajack.Common
|
|||||||
/// <param name="path"></param>
|
/// <param name="path"></param>
|
||||||
public static async Task DeleteDirectory(AbsolutePath path)
|
public static async Task DeleteDirectory(AbsolutePath path)
|
||||||
{
|
{
|
||||||
|
if (!path.Exists)
|
||||||
|
return;
|
||||||
|
|
||||||
var process = new ProcessHelper
|
var process = new ProcessHelper
|
||||||
{
|
{
|
||||||
Path = ((RelativePath)"cmd.exe").RelativeToSystemDirectory(),
|
Path = ((RelativePath)"cmd.exe").RelativeToSystemDirectory(),
|
||||||
|
Reference in New Issue
Block a user