From aa64a48db262e63f6c5f2a85a48bd86ab424ae21 Mon Sep 17 00:00:00 2001 From: legiz-ru Date: Thu, 25 Sep 2025 09:52:17 +0300 Subject: [PATCH] delete overhead mkdir0777 --- app/bot.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/bot.php b/app/bot.php index ea1b1df..c691ad7 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1853,10 +1853,6 @@ class Bot if (array_key_exists('hwid', $json)) { $out[] = 'update hwid devices'; $this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out)); - $dir = dirname($this->hwid); - if (!is_dir($dir)) { - mkdir($dir, 0777, true); - } $data = is_array($json['hwid']) ? $json['hwid'] : []; file_put_contents($this->hwid, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); } @@ -4852,10 +4848,6 @@ DNS-over-HTTPS with IP: public function setHwidStorage(array $storage) { - $dir = dirname($this->hwid); - if (!is_dir($dir)) { - mkdir($dir, 0777, true); - } file_put_contents($this->hwid, json_encode($storage, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); }