public function getPath() { $parent = $this->directory->getPath(); if ($parent === '') { return $this->name; } return $parent . '/' . $this->name; }