sourcewatcher

Last updated 2 months ago

Watches folders for specific file extensions and reloads the app if they change.

API Overview

API Documentation

Methods

Signature

cp.sourcewatcher:filesChanged(files, flagTables) -> boolean

Type

Method

Description

Checks that the file that triggered the Path Watcher matches the extension given.

Parameters

Returns

Signature

cp.sourcewatcher:matchesExtensions(file) -> boolean

Type

Method

Description

Checks that the file that triggered the Path Watcher matches the extension given.

Parameters

Returns

new

Signature

cp.sourcewatcher.new(extensions) -> sourcewatcher

Type

Method

Description

Creates a new sourcewatcher instance.

Parameters

Returns

start

Signature

cp.sourcewatcher:start() -> none

Type

Method

Description

Starts a Source Watcher.

Parameters

Returns

stop

Signature

cp.sourcewatcher:stop() -> none

Type

Method

Description

Stops a Source Watcher.

Parameters

Returns

watchPath

Signature

cp.sourcewatcher:watchPath(path) -> sourcewatcher

Type

Method

Description

Watches a path.

Parameters

Returns