Skip to content

Local File Trigger ignore option does not ignore files matching the pattern #13711

Closed
@rthomas67

Description

@rthomas67

Bug Description

Local File Trigger ignore option is ignored.

Creating or modifying file /tmp/workflow_scratch/test.bak should not trigger the workflow when the ignore option is added and the pattern **/*.bak is filled in (as suggested by the placeholder).

To Reproduce

  1. Set up the workflow provided (JSON below)
  2. Modify a file matching the ignore pattern
  3. Review executions (workflow triggers anyway)
{
  "nodes": [
    {
      "parameters": {
        "triggerOn": "folder",
        "path": "/tmp/workflow_scratch",
        "events": [
          "add",
          "change"
        ],
        "options": {
          "ignored": "**/*.bak"
        }
      },
      "type": "n8n-nodes-base.localFileTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "710363f1-f386-425b-9c34-f6ce288725f3",
      "name": "Local File Trigger"
    }
  ],
  "connections": {
    "Local File Trigger": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "abc123"
  }
}

Expected behavior

Files matching the ignore pattern should not trigger a workflow execution.

Operating System

Raspberry Pi OS

n8n Version

Tested in 1.72.1 and 1.78.0

Node.js Version

As built in docker container.

Database

PostgreSQL

Execution mode

main (default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateIssue is a duplicatein linearIssue or PR has been created in Linear for internal review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions