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

        return true;
    }