trait Watch extends Object
watch - Utilities for watching file trees.
- Annotations
- @RawJSType() @native()
- Version
0.18.0
- See also
https://www.npmjs.com/package/watch
- Alphabetic
- By Inheritance
- Watch
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
createMonitor(root: String, callback: Function): Unit
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.
- callback
The callback receives the monitor object.
watch.createMonitor(root, [options,] callback)
Example: -
def
createMonitor(root: String, options: WatchOptions, callback: Function): Unit
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.
- callback
The callback receives the monitor object.
watch.createMonitor(root, [options,] callback)
Example: -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unwatchTree(root: String): Unit
Unwatch a previously watched directory root using watch.watchTree.
Unwatch a previously watched directory root using watch.watchTree.
- root
the directory root you want to stop watching
watch.unwatchTree(root)
Example: -
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
walk(root: String, callback: Function): Unit
Walks a directory tree?
Walks a directory tree?
- root
The directory root you want to walk.
- callback
The callback receives the monitor object.
watch.walk(dir, options, callback)
Example: -
def
walk(root: String, options: WatchOptions, callback: Function): Unit
Walks a directory tree?
Walks a directory tree?
- root
The directory root you want to walk.
- options
The options object is passed to watch.watchTree.
- callback
The callback receives the monitor object.
watch.walk(dir, options, callback)
Example: -
def
watchTree(root: String, callback: Function): Unit
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
- callback
the result callback
watch.watchTree(root, [options,] callback)
Example: -
def
watchTree(root: String, options: WatchOptions, callback: Function): Unit
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
- callback
the result callback
watch.watchTree(root, [options,] callback)
Example: