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

Method rename

plugin/module_manager.go:157–165  ·  view source on GitHub ↗
(source string, target string)

Source from the content-addressed store, hash-verified

155}
156
157func (m ModuleManager) rename(source string, target string) error {
158 return resiliency.RetryN(10, func(attempt int) error {
159 err := os.Rename(source, target)
160 if err != nil {
161 return resiliency.Retryable(err)
162 }
163 return nil
164 })
165}
166
167func (m ModuleManager) download(definition ModuleDefinition, destination string, progressBar *visualization.ProgressBar) error {
168 out, err := os.Create(destination)

Callers 1

getModuleMethod · 0.95

Calls 2

RetryNFunction · 0.92
RetryableFunction · 0.92

Tested by

no test coverage detected