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

Function shadowCopyPlugin

internal/pluginhost/loader_windows.go:118–127  ·  view source on GitHub ↗
(file pluginFile)

Source from the content-addressed store, hash-verified

116}
117
118func shadowCopyPlugin(file pluginFile) (string, error) {
119 dir, errDir := shadowPluginDir()
120 if errDir != nil {
121 return "", errDir
122 }
123 shadowPluginCleanupOnce.Do(func() {
124 removeStaleShadowPlugins(dir)
125 })
126 return shadowCopyPluginToDir(file, dir)
127}
128
129func shadowCopyPluginToDir(file pluginFile, dir string) (string, error) {
130 source := filepath.Clean(file.Path)

Callers 1

OpenMethod · 0.85

Calls 4

shadowPluginDirFunction · 0.85
removeStaleShadowPluginsFunction · 0.85
shadowCopyPluginToDirFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected