addFileListener

public Unit addFileListener(IOAction action, Function1<FileEvent, Unit> listener)

Adds a new FileEventListener to this directory using the given listener lambda

See also

Parameters

action

the action to register the listener for

listener

the lambda function used for the FileEventListener