public FileWatcherEvent(source as Object, path as Path, kind as String, previousExists as Boolean, exists as Boolean, previousLastModified as Long, lastModified as Long, previousSize as ULong, size as ULong):
Creates a file-watcher event payload.
| Parameter | Description |
|---|---|
source | Watcher emitting the event. |
path | Watched file path. |
kind | Change kind: created, modified or deleted. |
previousExists | Whether the file existed before polling. |
exists | Whether the file exists after polling. |
previousLastModified | Previous modification timestamp. |
lastModified | Current modification timestamp. |
previousSize | Previous file size. |
size | Current file size. |
event = FileWatcherEvent(watcher, Path("app.log"), "modified", true, true, 1L, 2L, 10uL, 20uL)