diff --git a/BasicNodes/Functions/DirectoryIterator.cs b/BasicNodes/Functions/DirectoryIterator.cs
index 29ecc315..7cb4f1cf 100644
--- a/BasicNodes/Functions/DirectoryIterator.cs
+++ b/BasicNodes/Functions/DirectoryIterator.cs
@@ -3,6 +3,7 @@ using FileFlows.Plugin.Attributes;
using System.ComponentModel.DataAnnotations;
namespace FileFlows.BasicNodes.Functions;
+
///
/// A special flow element that iterates all files in a directory and process them through a sub flow
///
@@ -13,12 +14,14 @@ public class DirectoryIterator : Node
///
public override int Outputs => 1;
///
- public override FlowElementType Type => FlowElementType.SubFlow;
+ public override FlowElementType Type => FlowElementType.Process;
///
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/directory-iterator";
///
public override string Icon => "fas fa-sitemap";
-
+ ///
+ public override string CustomColor => "var(--flow-subflow)";
+
///
/// Gets or sets the flow to execute
///
diff --git a/BasicNodes/i18n/en.json b/BasicNodes/i18n/en.json
index 1a287caf..585e2b29 100644
--- a/BasicNodes/i18n/en.json
+++ b/BasicNodes/i18n/en.json
@@ -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": {
diff --git a/FileFlows.Plugin.dll b/FileFlows.Plugin.dll
index e1ef1775..14ac576e 100644
Binary files a/FileFlows.Plugin.dll and b/FileFlows.Plugin.dll differ
diff --git a/FileFlows.Plugin.pdb b/FileFlows.Plugin.pdb
index 15576e5f..680859b9 100644
Binary files a/FileFlows.Plugin.pdb and b/FileFlows.Plugin.pdb differ