mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-19 20:09:04 -06:00
FF-1539: Directory Iterator
This commit is contained in:
@@ -3,6 +3,7 @@ using FileFlows.Plugin.Attributes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace FileFlows.BasicNodes.Functions;
|
||||
|
||||
/// <summary>
|
||||
/// A special flow element that iterates all files in a directory and process them through a sub flow
|
||||
/// </summary>
|
||||
@@ -13,12 +14,14 @@ public class DirectoryIterator : Node
|
||||
/// <inheritdoc />
|
||||
public override int Outputs => 1;
|
||||
/// <inheritdoc />
|
||||
public override FlowElementType Type => FlowElementType.SubFlow;
|
||||
public override FlowElementType Type => FlowElementType.Process;
|
||||
/// <inheritdoc />
|
||||
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/directory-iterator";
|
||||
/// <inheritdoc />
|
||||
public override string Icon => "fas fa-sitemap";
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string CustomColor => "var(--flow-subflow)";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the flow to execute
|
||||
/// </summary>
|
||||
|
||||
@@ -130,13 +130,6 @@
|
||||
"Outputs": {
|
||||
"1": "Directory files iterated"
|
||||
},
|
||||
"Fields": {
|
||||
"FileName": "Path",
|
||||
"FileName-Help": "A path to either a file or folder to delete.\n\nIf left blank the current working file will be deleted."
|
||||
}
|
||||
},
|
||||
"FailFlow": {
|
||||
"Description": "Fails a flow immediately, useful if you want a certain path to just fail.",
|
||||
"Fields": {
|
||||
"Flow": "Flow",
|
||||
"Flow-Help": "The sub flow to execute the files against.",
|
||||
@@ -148,6 +141,13 @@
|
||||
"Recursive-Help": "If files in all sub directories should also be iterated, or if only the top level files should be iterated."
|
||||
}
|
||||
},
|
||||
"FailFlow": {
|
||||
"Description": "Fails a flow immediately, useful if you want a certain path to just fail.",
|
||||
"Fields": {
|
||||
"Reason": "Reason",
|
||||
"Reason-Help": "An optional reason to record why the flow failed."
|
||||
}
|
||||
},
|
||||
"FileSize": {
|
||||
"Description": "Checks if the file size matches the configured parameters. The values are in megabytes.\n\nOutput 1: Matches\nOutput 2: Does not match",
|
||||
"Outputs": {
|
||||
|
||||
Reference in New Issue
Block a user