| 17 | } |
| 18 | |
| 19 | func Get(ctx context.Context, sid, path string, args model.SharingListArgs) (*model.Sharing, model.Obj, error) { |
| 20 | sharing, res, err := get(ctx, sid, path, args) |
| 21 | if err != nil { |
| 22 | log.Warnf("failed get sharing %s/%s: %s", sid, path, err) |
| 23 | return nil, nil, err |
| 24 | } |
| 25 | return sharing, res, nil |
| 26 | } |
| 27 | |
| 28 | func ArchiveMeta(ctx context.Context, sid, path string, args model.SharingArchiveMetaArgs) (*model.Sharing, *model.ArchiveMetaProvider, error) { |
| 29 | sharing, res, err := archiveMeta(ctx, sid, path, args) |