function SecureFS (workingDir, insecureFileRead = false, fileWhitelist = []) {
    this._fs = fs;
    this._path = path;
    this.constants = this._fs.constants;

    this.workingDir = workingDir;
    this.insecureFileRead = insecureFileRead;
    this.fileWhitelist = fileWhitelist;

    this.isWindows = global.process.platform === 'win32';
}
Secure file resolver wrapper over fs. It only allow access to files inside working directory unless specified.

@param {*} workingDir - Path of working directory
@param {*} [insecureFileRead=false] - If true, allow reading files outside working directory
@param {*} [fileWhitelist=[]] - List of allowed files outside of working directory