protected function checkDirectory()
    {
        $directoryPath = $this
            ->directory
            ->getDirectoryPath();

        if (!is_dir($directoryPath)) {

            mkdir($directoryPath);
        }

        return $this;
    }
protected function checkDirectory()
    {
        $directoryPath = $this
            ->directory
            ->getDirectoryPath();

        if (!is_dir($directoryPath)) {

            mkdir($directoryPath);
        }

        return $this;
    }
protected function checkDirectory ( ) { $ directoryPath = $ this -> directory -> getDirectoryPath ( ) ; if ( ! is_dir ( $ directoryPath ) ) { mkdir ( $ directoryPath ) ; } return $ this ; }
Check directory existence and integrity

@return $this self Object
Check directory existence and integrity