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;
}