addDirectoryListener

public Unit addDirectoryListener(IOAction action, Function1<DirectoryEvent, Unit> listener)

Adds a new DirectoryEventListener 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 DirectoryEventListener