From fed4b369a361d72be5549bca9042e42da3955a73 Mon Sep 17 00:00:00 2001 From: nunu6689 <155800797+nunu6689@users.noreply.github.com> Date: Fri, 5 Sep 2025 13:07:51 +0800 Subject: [PATCH] fix: auto update local file provider (#2245) Using `Direct: true` will ignore the changes when the file was modified using replace method. Which is a common method used by ftp software. --- component/resource/fetcher.go | 1 - 1 file changed, 1 deletion(-) diff --git a/component/resource/fetcher.go b/component/resource/fetcher.go index c384277c..24f24d47 100644 --- a/component/resource/fetcher.go +++ b/component/resource/fetcher.go @@ -183,7 +183,6 @@ func (f *Fetcher[V]) startPullLoop(forceUpdate bool) (err error) { if f.vehicle.Type() == types.File { f.watcher, err = fswatch.NewWatcher(fswatch.Options{ Path: []string{f.vehicle.Path()}, - Direct: true, Callback: f.updateCallback, }) if err != nil {