Skip to content

Commit

Permalink
Fix unit tests (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Dec 11, 2023
1 parent d1b2f59 commit fd00e06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TemporaryFilesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public function generateTemporaryFilePath(string $fileIdentifier): string

public function deleteAllTemporaryFiles(string $fileIdentifier): void
{
if (!$this->filesystem->exists($this->temporaryDirectory)) {
return;
}
$tempFiles = $this->finder->in($this->temporaryDirectory)->depth('== 0')->files()->name(
'/^' . str_replace('*', '\*', $this->getFilePrefix($fileIdentifier)) . '[\w]+$/',
);
Expand Down

0 comments on commit fd00e06

Please sign in to comment.