Storage: add WithContents option to storage.Get() (#53105)

* Storage: add `WithContents` option to `storage.Get()`

* fix tests

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Artur Wierzbicki
2022-08-30 15:23:16 +02:00
committed by GitHub
co-authored by Ryan McKinley
parent fc348e6279
commit 7a340f486b
10 changed files with 103 additions and 41 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ func (t *nestedTree) GetFile(ctx context.Context, orgId int64, path string) (*fi
if store == nil {
return nil, fmt.Errorf("store not ready")
}
return store.Get(ctx, path)
file, _, err := store.Get(ctx, path, nil)
return file, err
}
func (t *nestedTree) getStorages(orgId int64) []storageRuntime {