FsStorage

FsStorage

Local file storage backend

Constructor

new FsStorage(options)

Source:
Implements:
Parameters:
Name Type Description
options Object
Properties
Name Type Description
path string

Path to a .gpgfs directory

readOnly boolean

Storage open mode

Members

name

Source:
Implements:

Storage implementation name @method

Methods

(async) fileExists()

Source:
Implements:

Check file existance @method

(async) readDir()

Source:
Implements:

(async) readFile()

Source:
Implements:

(async) rmFile()

Source:
Implements:

(async) start()

Source:
Implements:

Start storage @method

(async) stop()

Source:
Implements:

Start stop storage @method

(async) touchDir()

Source:
Implements:

(async) writeFile()

Source:
Implements: