src/bbn/ide/directories.php
public function get_root_path($code){
    /** @var array $dir The directory configuration */
    $dir = $this->dir($code);
    if ( $dir ){
      $path = $this->decipher_path(bbn\str::parse_path($dir['bbn_path'].(!empty($dir['path']) ? '/' . $dir['path'] : '')));

      $r = bbn\str::parse_path($path.'/');
      return $r;
    }
    return false;
  }
public function get_root_path($code){
    /** @var array $dir The directory configuration */
    $dir = $this->dir($code);
    if ( $dir ){
      $path = $this->decipher_path(bbn\str::parse_path($dir['bbn_path'].(!empty($dir['path']) ? '/' . $dir['path'] : '')));

      $r = bbn\str::parse_path($path.'/');
      return $r;
    }
    return false;
  }
public function get_root_path ( $ code ) { /** @var array $dir The directory configuration */ $ dir = $ this -> dir ( $ code ) ; if ( $ dir ) { $ path = $ this -> decipher_path ( bbn \ str :: parse_path ( $ dir [ 'bbn_path' ] . ( ! empty ( $ dir [ 'path' ] ) ? '/' . $ dir [ 'path' ] : '' ) ) ) ; $ r = bbn \ str :: parse_path ( $ path . '/' ) ; return $ r ; } return false ; }
Gets the real root path from a directory's id as recorded in the options.

@param string $code The dir's name (code)
@return bool|string
Gets the real root path from a directory s id as recorded in the options .