src/fs/entity/EntityAbstract.php
public function getParent()
    {
        if ($this->path === "/" || ($path = dirname($this->path)) === ".") {
            return null;
        }

        return new DirEntity($path);
    }
public function getParent()
    {
        if ($this->path === "/" || ($path = dirname($this->path)) === ".") {
            return null;
        }

        return new DirEntity($path);
    }
Get the parent directory

@return \sndsgd\fs\entity\DirEntity|null