implicit final class FSWatcherExtensions[T <: FSWatcher] extends AnyVal
File System Watcher Extensions
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FSWatcherExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new FSWatcherExtensions(watcher: T)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def onChange(listener: (String, Any) => Any): T
Emitted when something changes in a watched directory or file.
Emitted when something changes in a watched directory or file. See more details in fs.watch().
The filename argument may not be provided depending on operating system support. If filename is provided, it will be provided as a Buffer if fs.watch() is called with it's encoding option set to 'buffer', otherwise filename will be a string.
- listener
the event handler
- event: String - The type of fs change
- filename: String> | Buffer - The filename that changed (if relevant/available)
- Annotations
- @inline()
- Since
0.5.8
- def onClose(listener: () => Any): T
Added in Node.js v10.0.0
Added in Node.js v10.0.0
- Annotations
- @inline()
- See also
https://nodejs.org/api/fs.html#fs_event_close
- def onError(listener: (Error) => Any): T
Emitted when an error occurs.
Emitted when an error occurs.
- listener
the event handler
- Annotations
- @inline()
- Since
0.5.8
- def toString(): String
- Definition Classes
- Any