Skip to content

Commit

Permalink
update rm to allow directories
Browse files Browse the repository at this point in the history
  • Loading branch information
checkymander committed Feb 6, 2024
1 parent e876deb commit cfa503d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Payload_Type/athena/athena/agent_code/rm/RmArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public bool Validate(out string message)
}
}

if (!File.Exists(this.path))
if (!File.Exists(this.path) && !Directory.Exists(this.path))
{
message = "File doesn't exist.";
message = "Path doesn't exist.";
return false;
}

Expand Down

0 comments on commit cfa503d

Please sign in to comment.