Skip to content

Local File Trigger 节点#

Local File Trigger 节点在检测到文件系统更改时启动工作流。这些更改涉及添加、更改或删除文件或文件夹。

仅限自托管 n8n

此节点在 n8n Cloud 上不可用。

节点参数#

您可以使用 Trigger On 触发条件 参数选择要监视的事件。

Changes to a Specific File 对特定文件的更改#

节点在指定文件更改时触发。

File to Watch 要监视的文件 中输入要监视的文件路径。

Changes Involving a Specific Folder 涉及特定文件夹的更改#

节点在所选文件夹中发生更改时触发。

配置以下参数:

  • Folder to Watch 要监视的文件夹:输入要监视的文件夹路径。
  • Watch for 监视内容:选择要监视的更改类型。

节点选项#

使用节点 Options 选项 包含或排除文件和文件夹。

  • Include Linked Files/Folders 包含链接文件/文件夹:也监视链接文件或文件夹的更改。
  • Ignore 忽略:要忽略的文件或路径。n8n 测试整个路径,而不仅仅是文件名。支持 Anymatch 语法。
  • Max Folder Depth 最大文件夹深度:监视文件夹结构更改的深度。

忽略示例#

忽略单个文件:

1
2
**/<fileName>.<suffix>
# 例如,**/myfile.txt

忽略您正在监视的目录的子目录:

1
2
**/<directoryName>/**
# 例如,**/myDirectory/**

模板和示例#

Breakdown Documents into Study Notes using Templating MistralAI and Qdrant

by Jimleuk

View template details
Build a Financial Documents Assistant using Qdrant and Mistral.ai

by Jimleuk

View template details
Organise Your Local File Directories With AI

by Jimleuk

View template details
Browse Local File Trigger integration templates, or search all templates