diff --git a/src/TemporaryDirectory.php b/src/TemporaryDirectory.php index 23a09c8..93f268c 100644 --- a/src/TemporaryDirectory.php +++ b/src/TemporaryDirectory.php @@ -112,7 +112,7 @@ public function delete() protected function getFullPath(): string { - return $this->location.DIRECTORY_SEPARATOR.$this->name; + return $this->location.($this->name ? DIRECTORY_SEPARATOR.$this->name : ''); } protected function isValidDirectoryName(string $directoryName): bool