implicit final class WatchExtensions extends AnyVal
Watch Extensions
- Alphabetic
- By Inheritance
- WatchExtensions
- AnyVal
- Any
- Hide All
- Show All
- 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
createMonitorFuture(root: String, options: WatchOptions = null): Promise[Monitor]
This function creates an EventEmitter that gives notifications for different changes that happen to the file and directory tree under the given root argument.
This function creates an EventEmitter that gives notifications for different changes that happen to the file and directory tree under the given root argument.
- root
The directory root you want to monitor.
- options
The options object is passed to watch.watchTree.
- Annotations
- @inline()
watch.createMonitor('/home/mikeal', function (monitor) { ... })
Example: -
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
- val watch: Watch
-
def
watchTreeFuture(root: String, options: WatchOptions = null): Promise[(Dictionary[Stats], Stats, Stats)]
The first argument is the directory root you want to watch.
The first argument is the directory root you want to watch.
- root
the directory root you want to watch
- options
the file watching options
- Annotations
- @inline()
watch.watchTree('/home/mikeal', function (f, curr, prev) { ... })
Example: