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

Function removeStaleShadowPlugins

internal/pluginhost/loader_windows.go:208–222  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

206}
207
208func removeStaleShadowPlugins(dir string) {
209 entries, errRead := os.ReadDir(dir)
210 if errRead != nil {
211 return
212 }
213 for _, entry := range entries {
214 if entry == nil || entry.IsDir() {
215 continue
216 }
217 name := entry.Name()
218 if strings.HasPrefix(name, shadowPluginPrefix) || strings.HasPrefix(name, shadowPluginTempPrefix) {
219 removeShadowPlugin(filepath.Join(dir, name))
220 }
221 }
222}
223
224func shadowPluginPath(dir string, id string, digest string, extension string) string {
225 if len(digest) > shadowPluginDigestLength {

Calls 2

removeShadowPluginFunction · 0.85
NameMethod · 0.65