Chumper\Zipper\Zipper::createArchiveFile PHP Method

createArchiveFile() private method

private createArchiveFile ( $pathToZip ) : boolean
$pathToZip
return boolean
    private function createArchiveFile($pathToZip)
    {
        if (!$this->file->exists($pathToZip)) {
            if (!$this->file->exists(dirname($pathToZip))) {
                $this->file->makeDirectory(dirname($pathToZip), 0755, true);
            }
            if (!$this->file->isWritable(dirname($pathToZip))) {
                throw new Exception(sprintf('The path "%s" is not writeable', $pathToZip));
            }
            return true;
        }
        return false;
    }