public function getRelativePath() { $root = $this; while ($root->getParent() != null) { $root = $root->getParent(); } return substr($this->path, strlen($root->getPath()) + 1); }