modify
This commit is contained in:
@@ -299,13 +299,12 @@ class ServerInotify implements CustomProcess
|
|||||||
if ($f == '.' || $f == '..') {
|
if ($f == '.' || $f == '..') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!is_dir($f) && !str_ends_with($f, '.php')) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$path = $dir . '/' . $f;
|
$path = $dir . '/' . $f;
|
||||||
//递归目录
|
//递归目录
|
||||||
if (is_dir($path)) {
|
if (is_dir($path)) {
|
||||||
$this->watch($path);
|
$this->watch($path);
|
||||||
|
} else if (!str_ends_with($f, '.php')) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//检测文件类型
|
//检测文件类型
|
||||||
|
|||||||
Reference in New Issue
Block a user