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; }