Module file

File events

This module allows you to create event sources for monitoring file changes.

See dbus, evdev, event, file, hwinfo, log, lua, misc, os, spawn, udev, xorg for more information about this type

Methods

watch(paths)

Create a new file watch

watch(paths) Watch
Return type:

Watch

Parameters:

paths ([string]) – an array of paths to watch

Create a new file watch

The returned watch is set to monitor a given set of file from the start. But this set can be changed later.