diff --git a/src/TemporaryDirectory.php b/src/TemporaryDirectory.php index 71d14a3..907cf8f 100644 --- a/src/TemporaryDirectory.php +++ b/src/TemporaryDirectory.php @@ -107,6 +107,11 @@ public function exists(): bool return file_exists($this->getFullPath()); } + public function getName(): string + { + return $this->name; + } + protected function getFullPath(): string { return $this->location.(! empty($this->name) ? DIRECTORY_SEPARATOR.$this->name : '');