From 3a449e7b46cc2808600729b210f7be1b9add28d2 Mon Sep 17 00:00:00 2001 From: josc146 Date: Tue, 21 Nov 2023 22:30:42 +0800 Subject: [PATCH] fix fs watcher of macOS --- backend-golang/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend-golang/app.go b/backend-golang/app.go index 0508ad0..3edcb9a 100644 --- a/backend-golang/app.go +++ b/backend-golang/app.go @@ -69,8 +69,8 @@ func (a *App) OnBeforeClose(ctx context.Context) bool { func (a *App) watchFs() { watcher, err := fsnotify.NewWatcher() if err == nil { - watcher.Add("./lora-models") - watcher.Add("./models") + watcher.Add(a.exDir + "./lora-models") + watcher.Add(a.exDir + "./models") go func() { for { select {