From 0ae04aaa7bf137992f2f8dac5eb07526b85ab688 Mon Sep 17 00:00:00 2001 From: MuGu <94156510@qq.com> Date: Thu, 30 May 2024 09:09:27 +0000 Subject: [PATCH] fix(alias): Support forced refresh of file list --- drivers/alias/meta.go | 2 +- drivers/alias/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/alias/meta.go b/drivers/alias/meta.go index 45b885753d0..6afa8a9bcc9 100644 --- a/drivers/alias/meta.go +++ b/drivers/alias/meta.go @@ -16,7 +16,7 @@ type Addition struct { var config = driver.Config{ Name: "Alias", LocalSort: true, - NoCache: true, + NoCache: false, NoUpload: true, DefaultRoot: "/", ProxyRangeOption: true, diff --git a/drivers/alias/util.go b/drivers/alias/util.go index ba1f7e72649..4af3034561b 100644 --- a/drivers/alias/util.go +++ b/drivers/alias/util.go @@ -66,7 +66,7 @@ func (d *Alias) get(ctx context.Context, path string, dst, sub string) (model.Ob } func (d *Alias) list(ctx context.Context, dst, sub string) ([]model.Obj, error) { - objs, err := fs.List(ctx, stdpath.Join(dst, sub), &fs.ListArgs{NoLog: true}) + objs, err := fs.List(ctx, stdpath.Join(dst, sub), &fs.ListArgs{NoLog: true, Refresh: true}) // the obj must implement the model.SetPath interface // return objs, err if err != nil {