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

Function GetNearestMeta

internal/op/meta.go:22–24  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

20var metaG singleflight.Group[*model.Meta]
21
22func GetNearestMeta(path string) (*model.Meta, error) {
23 return getNearestMeta(utils.FixAndCleanPath(path))
24}
25func getNearestMeta(path string) (*model.Meta, error) {
26 meta, err := GetMetaByPath(path)
27 if err == nil {

Callers 15

WalkFSFunction · 0.92
filterReadableObjsFunction · 0.92
FsUpFunction · 0.92
DownFunction · 0.92
handleGetHeadPostMethod · 0.92
handleDeleteMethod · 0.92
handlePutMethod · 0.92
handleMkcolMethod · 0.92
handleLockMethod · 0.92
handleUnlockMethod · 0.92
handlePropfindMethod · 0.92
handleProppatchMethod · 0.92

Calls 2

FixAndCleanPathFunction · 0.92
getNearestMetaFunction · 0.85

Tested by

no test coverage detected