Spatie\Backup\Tasks\Backup\TemporaryDirectory::setPath PHP Method

setPath() protected method

protected setPath ( string $path = '' ) : TemporaryDirectory
$path string
return TemporaryDirectory
    protected function setPath(string $path = '') : TemporaryDirectory
    {
        $tempPath = storage_path('app/laravel-backup/temp');
        if ($tempPath !== '') {
            $tempPath .= "{$path}";
        }
        $tempPath = rtrim($tempPath, '/');
        $this->path = $tempPath;
        $this->createTemporaryDirectory($tempPath);
        return $this;
    }