Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WatchFS

WatchFS class.

Hierarchy

  • WatchFS

Index

Constructors

constructor

  • new WatchFS(expressions: string[]): WatchFS
  • Initialize WatchFS object

    Parameters

    • expressions: string[]

      File names (or patterns that will be resolved by UNIX find command) to be watched.

    Returns WatchFS

Properties

_fsWait

_fsWait: boolean

_status

_status: boolean

expressions

expressions: string[]

files

files: string[]

watchers

watchers: FSWatcher[]

Methods

stop

  • stop(): void
  • Stop watching files

    Returns void

watchFiles

  • watchFiles(callback: function): void
  • Watch for file changes

    Parameters

    • callback: function

      Function that will be called after a file change is detected

        • (arg0: string): any
        • Parameters

          • arg0: string

          Returns any

    Returns void

Generated using TypeDoc