Skip to content

fix(Local File Trigger Node): Fix ignored option on Mac os #15872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ShireenMissi
Copy link
Contributor

Summary

This PR adds a new "Ignore Mode" option to the Local File Trigger node, allowing users to choose between:

  • Regex (default): standard regex ignore patterns using anymatch syntax.

  • Function: wraps the ignored value in a function (e.g. (path) => path.includes(value)) to match paths programmatically.

This change addresses a known issue with Chokidar on macOS, where the default ignore behavior using regex does not reliably filter paths. See Chokidar Issue #773 for details.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2520/community-issue-local-file-trigger-ignore-option-does-not-ignore-files
https://community.n8n.io/t/local-file-trigger-not-ignore-file-paterns/84654/2
fixes #13711

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@dana-gill dana-gill requested a review from michael-radency May 30, 2025 16:05
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic found 1 issue across 2 files. Review it in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

@ShireenMissi ShireenMissi force-pushed the node-2520-community-issue-local-file-trigger-ignore-option-does-not-ignore-files branch from 7d10238 to 9082648 Compare May 30, 2025 16:12
Copy link

codecov bot commented May 30, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...se/nodes/LocalFileTrigger/LocalFileTrigger.node.ts 50.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels May 30, 2025
@ShireenMissi ShireenMissi removed the request for review from michael-radency June 4, 2025 16:43
@ShireenMissi ShireenMissi force-pushed the node-2520-community-issue-local-file-trigger-ignore-option-does-not-ignore-files branch from 9082648 to b4747c6 Compare June 4, 2025 16:45
@dana-gill dana-gill requested a review from michael-radency June 5, 2025 07:59
@ShireenMissi ShireenMissi requested review from elsmr and removed request for michael-radency June 5, 2025 07:59
@elsmr
Copy link
Member

elsmr commented Jun 6, 2025

I tested it on mac and it works as expected :) just left some comments on copy

@ShireenMissi ShireenMissi force-pushed the node-2520-community-issue-local-file-trigger-ignore-option-does-not-ignore-files branch from b4747c6 to a428473 Compare June 6, 2025 12:08
@ShireenMissi ShireenMissi force-pushed the node-2520-community-issue-local-file-trigger-ignore-option-does-not-ignore-files branch from a428473 to 8ff830d Compare June 6, 2025 14:00
@ShireenMissi ShireenMissi requested a review from elsmr June 6, 2025 14:07
@ShireenMissi ShireenMissi requested a review from elsmr June 9, 2025 08:25
Copy link
Contributor

✅ All Cypress E2E specs passed

@ShireenMissi ShireenMissi merged commit aa40735 into master Jun 10, 2025
53 checks passed
@ShireenMissi ShireenMissi deleted the node-2520-community-issue-local-file-trigger-ignore-option-does-not-ignore-files branch June 10, 2025 13:37
@janober
Copy link
Member

janober commented Jun 11, 2025

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local File Trigger ignore option does not ignore files matching the pattern
3 participants