_securityCheck(location) {
    const regex = new RegExp('^' + this.storageRootPath);
    if (!regex.test(location)) {
      const errorMessage = `The file at location ${location} is located outside of the storage root path (${this.storageRootPath}) and cannot be used.`;
      this.yggdrasil.fire('log', 'error', errorMessage);
      throw new Error(errorMessage);
    }
    return true;
  }
/**
   * Check if the location about to be used to store, get or delete a file is located inside the storage root path
   * @param location
   */
Check if the location about to be used to store, get or delete a file is located inside the storage root path
@param location
Check if the location about to be used to store get or delete a file is located inside the storage root path @param location
_securityCheck(location) {
    const regex = new RegExp('^' + this.storageRootPath);
    if (!regex.test(location)) {
      const errorMessage = `The file at location ${location} is located outside of the storage root path (${this.storageRootPath}) and cannot be used.`;
      this.yggdrasil.fire('log', 'error', errorMessage);
      throw new Error(errorMessage);
    }
    return true;
  }
_securityCheck ( location ) { const regex = new RegExp ( '^' + this . storageRootPath ) ; if ( ! regex . test ( location ) ) { const errorMessage = ` ${ location } ${ this . storageRootPath } ` ; this . yggdrasil . fire ( 'log' , 'error' , errorMessage ) ; throw new Error ( errorMessage ) ; } return true ; }
Check if the location about to be used to store, get or delete a file is located inside the storage root path
 @param location
Check if the location about to be used to store get or delete a file is located inside the storage root path @param location