function DiskBackend()

in backends/disk.js [28:41]


function DiskBackend(opts) {
    if (!(this instanceof DiskBackend)) {
        return new DiskBackend(opts);
    }

    if (!opts.folder) {
        throw new Error('DiskBackend: opts.folder is required');
    }

    EventEmitter.call(this);

    this.folder = opts.folder;
    this.json = opts.json || false;
}