(root string, id string)
| 277 | } |
| 278 | |
| 279 | func 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 | |
| 290 | func pluginFilePaths(root string, id string) ([]string, error) { |
| 291 | files, errFiles := pluginFileInfos(root, id) |
nothing calls this directly
no test coverage detected