.. _node-file-watcher: ``FileWatcher`` =============== :bdg-primary:`source` :bdg-secondary-line:`extra: file-watcher` Watch a location on the filesystem, and fire desired events. This is a source node, it however does not set a source function. Internally, the node creates event handlers for the desired events to watch, and those handlers write directly on the node inbound queue. :Node type: ``FileWatcher`` :Input: -- :Output: ``ObjectPayload`` :Extra: ``file-watcher`` .. code-block:: console $ pip install "juturna-nodes[file-watcher]" Pattern ------- .. include:: file_watcher.readme1.inc :parser: myst_parser.sphinx_ License ------- .. include:: file_watcher.readme2.inc :parser: myst_parser.sphinx_ Configuration ------------- Default node arguments, as defined in the node ``config.toml`` file. Any of them can be overridden in the node ``configuration`` of a pipeline. .. literalinclude:: ../../../../juturna_nodes/src/juturna/nodes/_file_watcher/config.toml :language: toml Pipeline usage -------------- .. code-block:: json { "name": "file_watcher", "type": "FileWatcher", "configuration": {} } Reference --------- .. autoclass:: juturna.nodes._file_watcher.file_watcher.FileWatcher :no-index: