节点与集成

Local File Trigger

The Local File Trigger node starts a workflow when it detects changes on the file system. These changes involve a file or folder getting added, changed, or deleted.

Node parameters

You can choose what event to watch for using the Trigger On parameter.

Changes to a Specific File

The node triggers when the specified file changes.

Enter the path for the file to watch in File to Watch.

Changes Involving a Specific Folder

The node triggers when a change occurs in the selected folder.

Configure these parameters:

  • Folder to Watch: Enter the path of the folder to watch.
  • Watch for: Select the type of change to watch for.

Node options

Use the node Options to include or exclude files and folders.

  • Include Linked Files/Folders: also watch for changes to linked files or folders.
  • Ignore: files or paths to ignore. n8n tests the whole path, not just the filename. Supports the Anymatch syntax.
  • Max Folder Depth: how deep into the folder structure to watch for changes.

Examples for Ignore

Ignore a single file:

sh
**/<fileName>.<suffix>
# For example, **/myfile.txt

Ignore a sub-directory of a directory you're watching:

sh
**/<directoryName>/**
# For example, **/myDirectory/**

Templates and examples

Browse Local File Trigger node documentation integration templates or search all templates

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明