(ctx context.Context, reqPath string, args model.LinkArgs)
| 97 | } |
| 98 | |
| 99 | func (d *Alias) link(ctx context.Context, reqPath string, args model.LinkArgs) (*model.Link, model.Obj, error) { |
| 100 | storage, reqActualPath, err := op.GetStorageAndActualPath(reqPath) |
| 101 | if err != nil { |
| 102 | return nil, nil, err |
| 103 | } |
| 104 | if args.Redirect && common.ShouldProxy(storage, stdpath.Base(reqPath)) { |
| 105 | return nil, nil, nil |
| 106 | } |
| 107 | return op.Link(ctx, storage, reqActualPath, args) |
| 108 | } |
| 109 | |
| 110 | func isConsistent(a, b model.Obj) bool { |
| 111 | if a.GetSize() != b.GetSize() { |
no test coverage detected