Skip to content

Commit

Permalink
fix(alias): Support forced refresh of file list
Browse files Browse the repository at this point in the history
  • Loading branch information
gmugu committed May 30, 2024
1 parent 639b781 commit 0ae04aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/alias/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Addition struct {
var config = driver.Config{
Name: "Alias",
LocalSort: true,
NoCache: true,
NoCache: false,
NoUpload: true,
DefaultRoot: "/",
ProxyRangeOption: true,
Expand Down
2 changes: 1 addition & 1 deletion drivers/alias/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0ae04aa

Please sign in to comment.