本地文件触发器节点#
¥Local File Trigger node
本地文件触发器节点会在检测到文件系统更改时启动工作流。这些更改涉及添加、更改或删除文件或文件夹。
¥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.
Self-hosted n8n only
此节点在 n8n Cloud 上不可用。
¥This node isn't available on n8n Cloud.
节点参数#
¥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.
- 忽略:要忽略的文件或路径。n8n 会测试整个路径,而不仅仅是文件名。支持 Anymatch 语法。
¥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:
1 2 | |
忽略你正在监视的目录的子目录:
¥Ignore a sub-directory of a directory you're watching:
1 2 | |
模板和示例#
¥Templates and examples