改名
This commit is contained in:
@@ -77,16 +77,17 @@ class ServerInotify extends Process
|
|||||||
$path = rtrim($path, '/');
|
$path = rtrim($path, '/');
|
||||||
foreach (glob($path . '/*') as $value) {
|
foreach (glob($path . '/*') as $value) {
|
||||||
$md5 = md5($value);
|
$md5 = md5($value);
|
||||||
|
|
||||||
if (is_dir($value)) {
|
if (is_dir($value)) {
|
||||||
$this->loadByDir($value);
|
$this->loadByDir($value);
|
||||||
}
|
}
|
||||||
if (!isset($this->md5Map[$md5])) {
|
if (!isset($this->md5Map[$md5])) {
|
||||||
return $this->reload();
|
return $this->reload();
|
||||||
}
|
}
|
||||||
if ($this->md5Map[$md5] != filectime($value)) {
|
$mTime = filectime($value);
|
||||||
|
if ($this->md5Map[$md5] != $mTime) {
|
||||||
return $this->reload();
|
return $this->reload();
|
||||||
}
|
}
|
||||||
|
$this->md5Map[$md5] = $mTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user