chore: add refresh arg in list func

This commit is contained in:
Noah Hsu
2022-08-29 19:15:52 +08:00
parent 97d4114e38
commit 68a125491b
4 changed files with 11 additions and 5 deletions

View File

@ -13,8 +13,8 @@ import (
// So, the purpose of this package is to convert virtual path to actual path
// then pass the actual path to the operations package
func List(ctx context.Context, path string) ([]model.Obj, error) {
res, err := list(ctx, path)
func List(ctx context.Context, path string, refresh ...bool) ([]model.Obj, error) {
res, err := list(ctx, path, refresh...)
if err != nil {
log.Errorf("failed list %s: %+v", path, err)
return nil, err