Skip to content

Commit fb5bc4e

Browse files
committed
CacheExtension: throws exception when is unable to create directory
1 parent c1deafd commit fb5bc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridges/CacheDI/CacheExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
5454

5555
private function checkTempDir($dir)
5656
{
57-
@mkdir($dir); // @ - directory may exists
57+
Nette\Utils\FileSystem::createDir($dir);
5858

5959
// checks whether directory is writable
6060
$uniq = uniqid('_', true);

0 commit comments

Comments
 (0)