FolderList

Description

The Folder List node scans a directory and outputs the list of files it contains. It is the primary tool for batch processing: instead of manually specifying each file, you can point this node to a folder and let it feed the entire workflow with every matching file, one after another.

Combined with a Sequencer node, it enables fully automated pipelines (e.g., "translate every .txt file in this folder", "summarize every .md file", "convert every .csv file").


Configuration Properties

📁 Filepath Section

TextBox
The path to the folder you want to scan. You can type the path manually or use the Browse... button.

Browse...
Opens a standard Windows folder dialog, allowing you to visually navigate your folders and select the target directory. The chosen path is automatically filled into the TextBox.


️ Options Section

Send Full Path
When checked, the node outputs the complete file path (e.g., C:\MyFolder\document.txt).
When unchecked, the node outputs only the file name (e.g., document.txt).

💡 Tip: Enable Send Full Path when downstream nodes need to open or read the file (e.g., File Read node). Disable it when you only need the file name for display or logging purposes.

File Filter
A pattern to filter which files are included in the list. Supports wildcards:

  • *.* = all files (default)
  • *.txt = only text files
  • *.md = only Markdown files
  • *.csv = only CSV files
  • report_*.pdf = files starting with "report_" and ending with ".pdf"

You can also use multiple filters separated by semicolons (e.g., *.txt;*.md;*.csv to include all three types).


Usage Example

"Batch translate all Markdown files in a folder":

  1. A Folder List node with:
    • Filepath: C:\Documents\ToTranslate\
    • Send Full Path: checked
    • File Filter: *.md
  2. A Sequencer node splits the list into individual file paths.
  3. A File Read node loads each file's content.
  4. An Agent node translates the content.
  5. A File Write node saves the translation to an output folder.

⚠️ Pitfalls to Avoid

Empty folders: If the folder contains no files matching the filter, the node outputs an empty string. Downstream nodes (like Sequencer) will receive nothing and the workflow will stop silently. Always verify the folder contains matching files before running long workflows.

Subfolders are NOT included: The node only lists files in the specified folder, not in subfolders. If you need recursive scanning, you will need to use a Code node with custom logic (e.g., Directory.GetFiles(path, filter, SearchOption.AllDirectories)).

File Filter syntax: The filter uses Windows-style wildcards, not Regular Expressions. *.txt works, but .*txt$ (regex syntax) will not match anything. Stick to * and ? wildcards.

Large folders: Scanning a folder with 10,000+ files can be slow and produce a very large output string. If you need to process many files, consider splitting the work into multiple Folder List nodes pointing to different subfolders, or use a Code node to implement pagination.

Send Full Path + dynamic paths: If you enable Send Full Path and feed the output directly into a File Write node, make sure the output folder exists and you have write permissions. The node does not create folders automatically — use a Code node or manual folder creation if needed.

File encoding: The node only lists file names/paths, it does not read file content. If you need to handle different file encodings, that must be done by the File Read node or a Code node downstream.