Class

io.scalajs.nodejs.fs.FSWatcher

FSWatcherExtensions

Related Doc: package FSWatcher

Permalink

implicit final class FSWatcherExtensions extends AnyVal

File System Watcher Extensions

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FSWatcherExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FSWatcherExtensions(watcher: FSWatcher)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def onChange(listener: (String, Any) ⇒ Any): watcher.type

    Permalink

    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

  8. def onError(listener: (Error) ⇒ Any): watcher.type

    Permalink

    Emitted when an error occurs.

    Emitted when an error occurs.

    listener

    the event handler

    Annotations
    @inline()
    Since

    0.5.8

  9. def toString(): String

    Permalink
    Definition Classes
    Any
  10. val watcher: FSWatcher

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped