private static function createFolderIfNotExists(string $path)
    {
        if (false === @mkdir($path, 0777, true) && !is_dir($path)) {
            throw new \RuntimeException(sprintf("Unable to create the %s directory\n", $path));
        }
    }