MCPcopy
hub / github.com/AlistGo/alist / Get

Function Get

internal/fs/fs.go:40–49  ·  view source on GitHub ↗
(ctx context.Context, path string, args *GetArgs)

Source from the content-addressed store, hash-verified

38}
39
40func Get(ctx context.Context, path string, args *GetArgs) (model.Obj, error) {
41 res, err := get(ctx, path)
42 if err != nil {
43 if !args.NoLog {
44 log.Warnf("failed get %s: %s", path, err)
45 }
46 return nil, err
47 }
48 return res, nil
49}
50
51func Link(ctx context.Context, path string, args model.LinkArgs) (*model.Link, model.Obj, error) {
52 res, file, err := link(ctx, path, args)

Callers 15

GetMethod · 0.92
getMethod · 0.92
linkMethod · 0.92
getReqPathMethod · 0.92
extractMethod · 0.92
targetPathExistsMethod · 0.92
GetMethod · 0.92
linkRealFileMethod · 0.92
BuildIndexFunction · 0.92
handleOptionsMethod · 0.92
handleGetHeadPostMethod · 0.92
handleDeleteMethod · 0.92

Calls 1

getFunction · 0.70

Tested by

no test coverage detected