private function createPathIfNeeded()
    {
        if (!is_dir($this->directory)) {
            return @mkdir($this->directory, 0777 & (~$this->umask), true) && !is_dir($this->directory);
        }

        return true;
    }
private function createPathIfNeeded()
    {
        if (!is_dir($this->directory)) {
            return @mkdir($this->directory, 0777 & (~$this->umask), true) && !is_dir($this->directory);
        }

        return true;
    }
private function createPathIfNeeded ( ) { if ( ! is_dir ( $ this -> directory ) ) { return @ mkdir ( $ this -> directory , 0777 & ( ~ $ this -> umask ) , true ) && ! is_dir ( $ this -> directory ) ; } return true ; }
Create base path path if needed.

@return bool
Create base path path if needed .