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
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 filePathString the path of the file that caused the watcher to be invoked. This is the file that has been changed, created or removed
eventString the event that triggered the watcher function. Can be
createorremove.- Source: