- Home
- Resources
- Integrations
- Local File Trigger
n8n Local File Trigger nodeConfigure Local File Trigger in n8n.
The Local File Trigger node starts a workflow when something changes on disk. The n8n Local File Trigger node watches one file or a whole folder, reacts to files and folders added, changed or deleted, and gives you 8 parameters to filter the noise. Useful when work still arrives as files.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Local File Trigger node watch?
The Local File Trigger node is a trigger, meaning it opens the workflow instead of sitting in the middle of it. It listens to the file system of the machine that runs n8n and starts an execution when a file or a folder is added, changed or deleted. There is no polling interval to set and no account to link: you point it at a path, choose the events, and the workflow runs on its own.
Scenario one: an accounting folder. A supplier drops a PDF into a shared directory, the node fires on File Added, and the rest of the workflow renames the document and logs a line in Google Sheets. Nobody has to remember to import anything at the end of the month.
Scenario two: a config file that must not drift silently. Trigger On is set to Changes to a Specific File, Watch for keeps File Changed, and the workflow posts the new content to a channel through Slack. Every edit leaves a trace, including the ones made straight on the server.
Scenario three: an export folder that fills up all day. Here the noise is the problem, so Ignore drops the temporary files, Ignore Existing Files/Folders keeps the backlog from firing on the first activation, and an If node routes the rest by extension.
When to reach for something else: this node only sees what the n8n machine itself can see. A file sitting behind an HTTP API is not a file system event, so a dedicated node, or HTTP Request when no dedicated node covers the call, does that job better. HTTP Request is the fallback for an HTTP endpoint, never for a protocol that is not HTTP.
Known limits worth knowing before you build. The official documentation flags security risks on instances with untrusted users, which is why the node is disabled by default from n8n 2.0 and is described as available on self-hosted n8n only. Version 1 is the maximum version in the catalog, so an older workflow shows the same panel. Watching a network share often needs Use Polling, and regex patterns in Ignore may not work on macOS. If you are still weighing the platform itself, the n8n review goes through the trade offs.
How do you set up each parameter?
The Local File Trigger node has 8 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Trigger On
triggerOnWhat you see in n8n
Notes & use cases
This required selector decides the whole shape of the node: one file under surveillance, or a folder and everything that happens inside it. Pick it first, because the fields below it change with the answer.
Key parameters
- Trigger On:
file(Changes to a Specific File) orfolder(Changes Involving a Specific Folder). - File to Watch: the path to follow, in the style of
/data/invoices/1.pdf. - Watch for: the required multi select of events,
add(File Added),change(File Changed),unlink(File Deleted),addDir(Folder Added),unlinkDir(Folder Deleted).
Await Write Finish
options.awaitWriteFinishWhat you see in n8n
Notes & use cases
A big file does not appear all at once. Turn this option on and n8n waits until writing is finished before starting the execution, which avoids reading half a document.
Key parameters
- Await Write Finish: a checkbox, added through Add option in the Options collection like every other option on this node.
Include Linked Files/Folders
options.followSymlinksWhat you see in n8n
Notes & use cases
By default the node monitors the links themselves and stops there. Switch this on and it follows them to what they point at, symlinks as well as aliases on MacOS and shortcuts on Windows.
Key parameters
- Include Linked Files/Folders: a checkbox that extends the watch to linked files and folders instead of the link entry.
Ignore
options.ignoredWhat you see in n8n
Notes & use cases
A filter for everything you do not want to wake the workflow. n8n tests the whole path, not just the filename, and the field accepts Anymatch syntax such as **/*.txt or ignore-me/subfolder.
Key parameters
- Ignore: the paths or files to skip. Regex patterns may not work on macOS, and substring matching goes through the Ignore Mode option set to Contain.
Ignore Existing Files/Folders
options.ignoreInitialWhat you see in n8n
Notes & use cases
When the watch starts, everything already sitting in the folder can count as something to report. This option tells n8n to leave that backlog alone and only react to what happens next.
Key parameters
- Ignore Existing Files/Folders: a checkbox that stops existing files and folders from triggering an event.
Max Folder Depth
options.depthWhat you see in n8n
Notes & use cases
Folder mode can go as deep as the tree allows. This selector sets the ceiling, so a watch on a shared drive does not quietly follow every branch of it.
Key parameters
- Max Folder Depth:
0(Top Folder Only),1to5(1 Levels Down through 5 Levels Down), or-1(Unlimited).
Use Polling
options.usePollingWhat you see in n8n
Notes & use cases
Watching is normally handled by the file system itself. Over a network that often fails to report anything, and this option switches the node to polling, meaning it checks the path at intervals rather than waiting to be told.
Key parameters
- Use Polling: a checkbox, typically necessary to successfully watch files over a network.
Ignore Mode
options.ignoreModeWhat you see in n8n
Notes & use cases
This selector decides how the Ignore value is read: as a pattern to match, or as a piece of text to find in the path. It is the companion option people forget when a filter refuses to catch anything.
Key parameters
- Ignore Mode:
match(Match) for regex patterns such as**/*.txt, not supported on macOS, orcontain(Contain) to ignore files whose path contains the value.
Need help automating Local File Trigger with n8n?
A person reads every message.
Local File Trigger and n8n, the usual questions
01Is the n8n Local File Trigger node included with n8n?
02What credentials does the Local File Trigger node need?
03What are the limits of the Local File Trigger node?
04When should you use this node instead of HTTP Request?
05n8n or Make for watching files?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
