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

Function pluginFilePaths

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

Source from the content-addressed store, hash-verified

288}
289
290func pluginFilePaths(root string, id string) ([]string, error) {
291 files, errFiles := pluginFileInfos(root, id)
292 if errFiles != nil {
293 return nil, errFiles
294 }
295 out := make([]string, 0, len(files))
296 for _, file := range files {
297 out = append(out, file.Path)
298 }
299 return out, nil
300}
301
302func pluginFileInfos(root string, id string) ([]pluginFileInfo, error) {
303 root = strings.TrimSpace(root)

Callers 2

deletePluginArtifactFunction · 0.85
currentPluginFilePathFunction · 0.85

Calls 1

pluginFileInfosFunction · 0.85

Tested by

no test coverage detected