public function dirname()
	{
		if (! is_null($this->url) && $this->path->isEmpty() && ! $this->url->host->isEmpty()) {
			return '/';
		}
		return $this->path->dirname();
	}
public function dirname()
	{
		if (! is_null($this->url) && $this->path->isEmpty() && ! $this->url->host->isEmpty()) {
			return '/';
		}
		return $this->path->dirname();
	}
public function dirname ( ) { if ( ! is_null ( $ this -> url ) && $ this -> path -> isEmpty ( ) && ! $ this -> url -> host -> isEmpty ( ) ) { return '/' ; } return $ this -> path -> dirname ( ) ; }
Return the path excluding the filename.

If the URL has a host but no path, we still return '/'.

@return string
Return the path excluding the filename .