Class: FileMonitor

@bldr/songbook-intermediate-files~FileMonitor

Monitor files changes

new FileMonitor (dbFile)

Name Type Description
dbFile string

The path where to store the Sqlite database.

Methods

flush ()

Flush the file monitor database.

hashSHA1 (filename)

Build the sha1 hash of a file.

Name Type Description
filename string

The path of the file.

isModified (filename)boolean

Check for file modifications

Name Type Description
filename string

Path to the file.

Returns:
Type Description
boolean

purge ()

Purge the file monitor database by deleting it.