implicit final class FSWatcherExtensions extends AnyVal
File System Watcher Extensions
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FSWatcherExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
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): watcher.type
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
onError(listener: (Error) ⇒ Any): watcher.type
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
- val watcher: FSWatcher