private function getDirectoryIterator(string $directory): \DirectoryIterator
    {
        if ($directory === 'default') {
            return new \DirectoryIterator($this->dataDirectory);
        }
        return new \DirectoryIterator($directory);
    }
private function getDirectoryIterator(string $directory): \DirectoryIterator
    {
        if ($directory === 'default') {
            return new \DirectoryIterator($this->dataDirectory);
        }
        return new \DirectoryIterator($directory);
    }
private function getDirectoryIterator ( string $ directory ) : \ DirectoryIterator { if ( $ directory === 'default' ) { return new \ DirectoryIterator ( $ this -> dataDirectory ) ; } return new \ DirectoryIterator ( $ directory ) ; }
Get Directory Iterator
@param string $directory
@return \DirectoryIterator
Get Directory Iterator