ZEST / filestore.disk / Module: filestore-disk

filestore-disk

require("filestore-disk")(logger, options) → {FileStoreFunctions}

Parameters:
Name Type Argument Description
logger external:base-logger <optional>

Optional logger module that can be injected if required. If logger is not specified, it will default to console.

options module:filestore-disk~Options

the options object for configuring the filestore.

Source:
Returns:
  • A map of functions which can be used to access and update the filestore
Type
FileStoreFunctions

filestore.disk is a filestore component for zest that manages files on disks drives.

Source:

Requires

Type Definitions

Config

The options object is used to configure the filestore

Type:
  • object
Properties:
Name Type Description
logger external:base-logger | console

The logger to be used by this component.

fileEvent EventEmitter

An event emitter object which is used to emit and listen to file change events.

baseDir string

The absolute path where the files have to be stored.

Source:

Options

The options object is used to configure the filestore

Type:
  • object
Properties:
Name Type Description
baseDir string

The absolute path where the files have to be stored.

Source: