<?php mkdir( string $directory, int $permissions = 0777, bool $recursive = false, ?resource $context = null): bool
<?php $systemTempDir = Path::normalize(realpath(sys_get_temp_dir())); $basePath = $systemTempDir.'/'.$namespace.'/'.$shortClass; while (false === @mkdir($tempDir = $basePath.rand(10000, 99999), 0777, true)) { }