Skip to content

Commit bf1ccc2

Browse files
committed
throws exception when is unable to create temp directory
1 parent e9fc827 commit bf1ccc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,7 @@ public function setAutoRefresh($on = true)
365365
*/
366366
public function setTempDirectory($dir)
367367
{
368-
if (!is_dir($dir)) {
369-
@mkdir($dir); // @ - directory may already exist
370-
}
368+
Nette\Utils\FileSystem::createDir($dir);
371369
$this->tempDirectory = $dir;
372370
return $this;
373371
}

0 commit comments

Comments
 (0)