From 7360a8107bd74074062c4ae3d71de2d949aef6d4 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 12:07:24 +0800 Subject: [PATCH] eee --- Abstracts/HotReload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index f4ef2ae..b72c9fb 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -66,7 +66,7 @@ class HotReload extends AbstractProcess $this->pipe = inotify_init(); foreach (config('reload.listen') as $key => $value) { - $this->readDirectory($value . '/*'); + $this->readDirectory($value); } while (!$this->isStop()) { $read = inotify_read($this->pipe); @@ -136,7 +136,7 @@ class HotReload extends AbstractProcess continue; } if (is_dir($data)) { - $this->readDirectory($data . DIRECTORY_SEPARATOR . '*'); + $this->readDirectory($data); } else { $this->readFile($data); }