diff --git a/Payload_Type/athena/athena/agent_code/rm/rm.cs b/Payload_Type/athena/athena/agent_code/rm/rm.cs index 2e68710e..8a9e89b1 100644 --- a/Payload_Type/athena/athena/agent_code/rm/rm.cs +++ b/Payload_Type/athena/athena/agent_code/rm/rm.cs @@ -21,6 +21,12 @@ public async Task Execute(ServerJob job) { RmArgs args = JsonSerializer.Deserialize(job.task.parameters); + if(!args.Validate(out string message)) + { + await messageManager.Write(message, job.task.id, true, "error"); + return; + } + try { FileAttributes attr = File.GetAttributes(args.path);