fix(alias): Support forced refresh of file list (#6562)

This commit is contained in:
j2rong4cn
2024-06-16 16:59:10 +08:00
committed by GitHub
parent fcf2683112
commit 29fe49fb87
5 changed files with 27 additions and 24 deletions

View File

@ -24,7 +24,8 @@ func list(ctx context.Context, path string, args *ListArgs) ([]model.Obj, error)
if storage != nil {
_objs, err = op.List(ctx, storage, actualPath, model.ListArgs{
ReqPath: path,
}, args.Refresh)
Refresh: args.Refresh,
})
if err != nil {
if !args.NoLog {
log.Errorf("fs/list: %+v", err)