MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / link

Method link

drivers/alias/util.go:99–108  ·  view source on GitHub ↗
(ctx context.Context, reqPath string, args model.LinkArgs)

Source from the content-addressed store, hash-verified

97}
98
99func (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
110func isConsistent(a, b model.Obj) bool {
111 if a.GetSize() != b.GetSize() {

Callers 1

LinkMethod · 0.95

Calls 3

GetStorageAndActualPathFunction · 0.92
ShouldProxyFunction · 0.92
LinkFunction · 0.92

Tested by

no test coverage detected