ZEST / filestore.disk / Module: filestore-disk/watch

filestore-disk/watch

require("filestore-disk/watch")(config) → {FileStoreFunctions#watch}

Returns an watch function using the config object

Parameters:
Name Type Description
config module:filestore-disk~Config

the config object

Source:
Returns:

the watch function

Type
FileStoreFunctions#watch

The filestore-disk/watch module returns the FileStoreFunctions#watch function.

Source:

Requires

Type Definitions

Callback(filePath, event)

The Watch function is sent as the last argument to the watch function.

Parameters:
Name Type Description
filePath String

the path of the file that caused the watcher to be invoked. This is the file that has been changed, created or removed

event String

the event that triggered the watcher function. Can be create or remove.

Source: