Skip to content

Commit

Permalink
automatically pull all missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Sep 23, 2024
1 parent ed82881 commit 340e763
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/model/folder_virtual.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ func (f *virtualFolderSyncthingService) Serve(ctx context.Context) error {
return nil

case <-f.pullScheduled:
f.PullAll()
continue

}
}
}
Expand All @@ -231,6 +231,10 @@ func (f *virtualFolderSyncthingService) BringToFront(filename string) {
}

func (vf *virtualFolderSyncthingService) Scan(subs []string) error {
return vf.PullAll()
}

func (vf *virtualFolderSyncthingService) PullAll() error {
snap, err := vf.fset.Snapshot()
if err != nil {
return err
Expand Down

0 comments on commit 340e763

Please sign in to comment.