src/Traits/PathTrait.php
public function getDirectoryParts(): array
    {
        return $this->myAboveBaseLevel === 0 ? $this->myDirectoryParts : array_merge(array_fill(0, $this->myAboveBaseLevel, '..'), $this->myDirectoryParts);
    }
public function getDirectoryParts(): array
    {
        return $this->myAboveBaseLevel === 0 ? $this->myDirectoryParts : array_merge(array_fill(0, $this->myAboveBaseLevel, '..'), $this->myDirectoryParts);
    }
public function getDirectoryParts ( ) : array { return $ this -> myAboveBaseLevel === 0 ? $ this -> myDirectoryParts : array_merge ( array_fill ( 0 , $ this -> myAboveBaseLevel , '..' ) , $ this -> myDirectoryParts ) ; }
Returns the directory parts.

@since 1.0.0

@return string[] The directory parts.
Returns the directory parts .