public function get_root_path($repository){
    if ( \is_string($repository) ){
      $repository = $this->repository($repository);
    }
    if ( !empty($repository) && !empty($repository['bbn_path']) ){
      $repository_path = !empty($repository['path']) ? '/' . $repository['path'] : '';
      $path = self::decipher_path($repository['bbn_path'] . $repository_path) . '/';
      return \bbn\str::parse_path($path);
    }
    return false;
  }