protected function split($path)
  {
    if (is_array($path)) {
      $parts = $path;
    } else {
      $parts = explode("/", $path);
    }
    return $parts;
  }
protected function split($path)
  {
    if (is_array($path)) {
      $parts = $path;
    } else {
      $parts = explode("/", $path);
    }
    return $parts;
  }
protected function split ( $ path ) { if ( is_array ( $ path ) ) { $ parts = $ path ; } else { $ parts = explode ( "/" , $ path ) ; } return $ parts ; }
Split path into dir names

@param string $path Path

@return array
Split path into dir names