Todaymade\Daux\Tree\Entry::getRelativePath PHP Method

getRelativePath() public method

Get the path to the file from the root of the documentation
public getRelativePath ( ) : string
return string
    public function getRelativePath()
    {
        $root = $this;
        while ($root->getParent() != null) {
            $root = $root->getParent();
        }
        return substr($this->path, strlen($root->getPath()) + 1);
    }