FileMonitor

better.files.FileMonitor
abstract class FileMonitor(val root: File, maxDepth: Int) extends Monitor

Implementation of File.Monitor

Attributes

Graph
Supertypes
trait Monitor
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Constructors

def this(root: File, recursive: Boolean)

Concrete methods

override def close(): Unit

Attributes

Definition Classes
AutoCloseable
override def onCreate(file: File, count: Int): Unit

Attributes

Definition Classes
override def onDelete(file: File, count: Int): Unit

Attributes

Definition Classes
override def onException(exception: Throwable): Unit

Attributes

Definition Classes
override def onModify(file: File, count: Int): Unit

Attributes

Definition Classes
override def onUnknownEvent(event: WatchEvent[_]): Unit

Attributes

Definition Classes
override def start()(implicit executionContext: ExecutionContext): Unit

Attributes

Definition Classes

Inherited methods

def onEvent(eventType: Kind[Path], file: File, count: Int): Unit

Dispatch a StandardWatchEventKind to an appropriate callback Override this if you don't want to manually handle onDelete/onCreate/onModify separately

Dispatch a StandardWatchEventKind to an appropriate callback Override this if you don't want to manually handle onDelete/onCreate/onModify separately

Attributes

Inherited from:
Monitor
def stop(): Unit

Attributes

Inherited from:
Monitor

Concrete fields

val root: File