Skip to content

Commit

Permalink
Merge pull request #223 from NoxOrg/bugfix/purge-folder-must-now-throw
Browse files Browse the repository at this point in the history
- removed the error when a folder does not exist
  • Loading branch information
jan-schutte committed May 7, 2024
2 parents 9cb2602 + e023a1b commit bb7d96d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ public Task<IDictionary<string, object>> 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);

Expand Down

0 comments on commit bb7d96d

Please sign in to comment.