Skip to content

Commit

Permalink
Add method to retrieve the generated name
Browse files Browse the repository at this point in the history
  • Loading branch information
willrowe authored Jan 8, 2025
1 parent 9a53116 commit 81bc07e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TemporaryDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : '');
Expand Down

0 comments on commit 81bc07e

Please sign in to comment.