klyn.io.FileWatcherEvent.FileWatcherEvent
constructor
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)
Description

Creates a file-watcher event payload.

Parameters
ParameterDescription
sourceWatcher emitting the event.
pathWatched file path.
kindChange kind: created, modified or deleted.
previousExistsWhether the file existed before polling.
existsWhether the file exists after polling.
previousLastModifiedPrevious modification timestamp.
lastModifiedCurrent modification timestamp.
previousSizePrevious file size.
sizeCurrent file size.
Example
event = FileWatcherEvent(watcher, Path("app.log"), "modified", true, true, 1L, 2L, 10uL, 20uL)