From 5fa407d697a582d01ba417acecf8167b66032485 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 26 Jul 2021 02:50:04 +0800 Subject: [PATCH] modify --- System/Process/ServerInotify.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index a4b34eb0..da289bc0 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -296,6 +296,9 @@ class ServerInotify implements CustomProcess $files = scandir($dir); foreach ($files as $f) { + if ($f == '.' || $f == '..') { + continue; + } if (!is_dir($f) && !str_ends_with($f, '.php')) { continue; }