From e023a1b8e2c60c84197d9ce8cae2da365e012f56 Mon Sep 17 00:00:00 2001 From: jan Date: Tue, 7 May 2024 10:44:33 +0200 Subject: [PATCH] - removed the error when a folder does not exist --- .../Nox.Cli.Plugin.File/FilePurgeFolder_v1.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Nox.Cli.Plugins/Nox.Cli.Plugin.File/FilePurgeFolder_v1.cs b/src/Nox.Cli.Plugins/Nox.Cli.Plugin.File/FilePurgeFolder_v1.cs index 6a796af7..892ce386 100755 --- a/src/Nox.Cli.Plugins/Nox.Cli.Plugin.File/FilePurgeFolder_v1.cs +++ b/src/Nox.Cli.Plugins/Nox.Cli.Plugin.File/FilePurgeFolder_v1.cs @@ -57,11 +57,7 @@ public Task> ProcessAsync(INoxWorkflowContext ctx) try { var fullPath = Path.GetFullPath(_path); - if (!Directory.Exists(fullPath)) - { - ctx.SetErrorMessage($"Folder {fullPath} does not exist!"); - } - else + if (Directory.Exists(fullPath)) { var di = new DirectoryInfo(_path);