public function getPath() { $path = parent::getPath(); // special case when dealing with root dir of reference if ($path === '') { $pathname = $this->getPathname(); if (($pos = strpos($pathname, ':')) !== false) { $path = substr($pathname, 0, $pos + 1); } } return $path; }