mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:29:29 -06:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using FileFlows.Plugin;
|
|
|
|
namespace FileFlows.BasicNodes.Templating;
|
|
|
|
/// <summary>
|
|
/// Special templating node for the output path
|
|
/// </summary>
|
|
public class OutputPath : TemplatingNode
|
|
{
|
|
/// <summary>
|
|
/// Gets the number of inputs
|
|
/// </summary>
|
|
public override int Inputs => 1;
|
|
|
|
/// <summary>
|
|
/// Gets the icon
|
|
/// </summary>
|
|
public override string Icon => "fas fa-folder";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the URL to the help page
|
|
/// </summary>
|
|
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/templating/output-path";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the flow element type
|
|
/// </summary>
|
|
public override FlowElementType Type => FlowElementType.Logic;
|
|
|
|
/// <summary>
|
|
/// Executes the flow element
|
|
/// </summary>
|
|
/// <param name="args">the node paramters</param>
|
|
/// <returns>the output</returns>
|
|
public override int Execute(NodeParameters args)
|
|
{
|
|
args.Logger?.ELog("This templating node cannot be used in an executed flow");
|
|
return -1;
|
|
}
|
|
} |