Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gbxyz committed Feb 11, 2024
1 parent 07e3fb1 commit c7709e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RDAP/RootServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace RDAP;

require_once __DIR__.'/Error.php';

use OpenSwoole\HTTP\{Request,Response};

/**
Expand Down Expand Up @@ -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 .= ' &';

Expand Down

0 comments on commit c7709e7

Please sign in to comment.