Skip to content

Commit

Permalink
Check for empty name when returning fullPath
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Sep 11, 2017
1 parent 29500fe commit e3da5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TemporaryDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3da5b7

Please sign in to comment.