This commit is contained in:
xl
2024-11-19 09:12:45 +08:00
parent d191296ecc
commit b36e21d8ee
+1 -3
View File
@@ -149,9 +149,7 @@ class HotReload extends AbstractProcess
public function readFile(string $directory): void public function readFile(string $directory): void
{ {
if (str_ends_with($directory, '.php') === true) { if (str_ends_with($directory, '.php') === true) {
$wd = inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE);
$this->watches[] = $wd;
} }
} }