public PluginMethodReturnValueType Shell(FileDeleteArgs DeleteArgs) { var result = FileUtil.FileDelete(DeleteArgs.Path); return(new PluginMethodReturnValueType() { DataType = PluginMethodReturnValueType.StringDataType, Data = JsonConvert.SerializeObject(result), }); }
public static string MakeFileDeleteCommand(string path) { var args = new FileDeleteArgs() { Path = path, }; var argsSerialize = JsonConvert.SerializeObject(args); return(PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FileDelete", argsSerialize)); }
public string Shell(FileDeleteArgs DeleteArgs) { var result = FileUtil.FileDelete(DeleteArgs.Path); return(JsonConvert.SerializeObject(result)); }