=========== Module file =========== .. lua:module:: file File events This module allows you to create event sources for monitoring file changes. See :lua:meth:`dbus `, :lua:meth:`evdev `, :lua:meth:`event `, :lua:meth:`file `, :lua:meth:`hwinfo `, :lua:meth:`log `, :lua:meth:`lua `, :lua:meth:`misc `, :lua:meth:`os `, :lua:meth:`spawn `, :lua:meth:`udev `, :lua:meth:`xorg ` for more information about this type Methods ========== .. list-table:: :header-rows: 0 * - :lua:meth:`watch(paths) ` - Create a new file watch .. lua:method:: watch(paths) -> Watch :rtype: :lua:mod:`Watch ` :param paths: an array of paths to watch :type paths: [string] 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.