Skip to content

Add file name pattern filtering to FTP trigger#5

Open
drudge wants to merge 1 commit into
mainfrom
drudge/post-process-commands
Open

Add file name pattern filtering to FTP trigger#5
drudge wants to merge 1 commit into
mainfrom
drudge/post-process-commands

Conversation

@drudge

@drudge drudge commented Feb 6, 2026

Copy link
Copy Markdown
Owner

Summary

Adds an optional "Filename Filter" field in the node's Options section, allowing users to specify glob patterns (e.g., HR_Feed*.csv) to filter which files trigger the node. Pattern is optional and backward compatible.

Changes

  • Added picomatch dependency for glob pattern matching
  • Added "Options" collection with "Filename Filter" field (visible when watching a specific folder)
  • Filter applied before state tracking so non-matching files never trigger events

Testing

  • TypeScript compilation: ✓
  • ESLint: ✓
  • Empty pattern matches all files (backward compatible)
  • Glob patterns like *.csv, report_????.*, and HR_Feed* work as expected

Allow users to filter files by glob pattern (e.g. "HR_Feed*.csv") so the trigger
only fires for matching files. Pattern is optional and stored in the node options.
When empty, all files match (backward compatible).
@drudge drudge linked an issue Feb 6, 2026 that may be closed by this pull request
@Vission01

Copy link
Copy Markdown

Thank you so much for looking into these so quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request - File Filtering

2 participants