From c7709e72331586c0d4e76f33adf5464d9882059f Mon Sep 17 00:00:00 2001 From: Gavin Brown Date: Sun, 11 Feb 2024 12:09:14 +0000 Subject: [PATCH] updated --- RDAP/RootServer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RDAP/RootServer.php b/RDAP/RootServer.php index 65dcdfe..5682a5b 100644 --- a/RDAP/RootServer.php +++ b/RDAP/RootServer.php @@ -2,6 +2,8 @@ namespace RDAP; +require_once __DIR__.'/Error.php'; + use OpenSwoole\HTTP\{Request,Response}; /** @@ -81,6 +83,9 @@ protected function updateData(bool $background=true) : void { ]; foreach ($cmds as $cmd => $dir) { + if (!file_exists($dir)) @mkdir($dir, 0700, true); + if (!is_dir($dir)) throw new Error("{$dir} is not a directory"); + $fmt = '%s %s 1>&2'; if ($background) $fmt .= ' &';