klyn.io.FileWatchEvent.FileWatchEvent
constructor
public FileWatchEvent(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-watch 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 = FileWatchEvent(watcher, Path("app.log"), "modified", true, true, 1L, 2L, 10uL, 20uL)