MCPcopy Create free account
hub / github.com/UiPath/uipathcli / findLocalModule

Method findLocalModule

plugin/module_manager.go:102–112  ·  view source on GitHub ↗
(module ModuleDefinition)

Source from the content-addressed store, hash-verified

100}
101
102func (m ModuleManager) findLocalModule(module ModuleDefinition) string {
103 directory, err := directories.OfflineModules()
104 if err != nil {
105 return ""
106 }
107 path := filepath.Join(directory, module.ArchiveName)
108 if _, err := os.Stat(path); err == nil {
109 return path
110 }
111 return ""
112}
113
114func (m ModuleManager) getModule(definition ModuleDefinition) (string, error) {
115 moduleDirectory, err := m.moduleDirectory(definition)

Callers 2

offlineMethod · 0.95
getModuleMethod · 0.95

Calls 1

OfflineModulesFunction · 0.92

Tested by

no test coverage detected