Aimeos\ShopBundle\Composer\ScriptHandler::createDirectory PHP Method

createDirectory() protected static method

Creates a new directory if it doesn't exist yet
protected static createDirectory ( string $dir )
$dir string Absolute path of the new directory
    protected static function createDirectory($dir)
    {
        $perm = 0755;
        if (!is_dir($dir) && !mkdir($dir, $perm, true)) {
            $msg = 'Unable to create directory "%1$s" with permission "%2$s"';
            throw new \RuntimeException(sprintf($msg, $dir, $perm));
        }
    }