MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / currentPluginFilePath

Function currentPluginFilePath

internal/homeplugins/sync.go:279–288  ·  view source on GitHub ↗
(root string, id string)

Source from the content-addressed store, hash-verified

277}
278
279func currentPluginFilePath(root string, id string) (string, error) {
280 paths, errPaths := pluginFilePaths(root, id)
281 if errPaths != nil {
282 return "", errPaths
283 }
284 if len(paths) == 0 {
285 return "", nil
286 }
287 return paths[0], nil
288}
289
290func pluginFilePaths(root string, id string) ([]string, error) {
291 files, errFiles := pluginFileInfos(root, id)

Callers

nothing calls this directly

Calls 1

pluginFilePathsFunction · 0.85

Tested by

no test coverage detected