From 6e64f102b9cb126d19e193f04b7c13c6a8f4d5bb Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 26 Jul 2021 12:50:35 +0800 Subject: [PATCH] modify --- System/Process/ServerInotify.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index da289bc0..98ab49b7 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -299,13 +299,12 @@ class ServerInotify implements CustomProcess if ($f == '.' || $f == '..') { continue; } - if (!is_dir($f) && !str_ends_with($f, '.php')) { - continue; - } $path = $dir . '/' . $f; //递归目录 if (is_dir($path)) { $this->watch($path); + } else if (!str_ends_with($f, '.php')) { + continue; } //检测文件类型