(updatePath string)
| 1605 | } |
| 1606 | |
| 1607 | func stubExtensionUpdate(updatePath string) error { |
| 1608 | if _, err := os.Stat(updatePath); err == nil { |
| 1609 | return fmt.Errorf("failed to stub extension update directory: %s already exists", updatePath) |
| 1610 | } |
| 1611 | if err := os.MkdirAll(updatePath, 0755); err != nil { |
| 1612 | return fmt.Errorf("failed to stub extension update directory: %w", err) |
| 1613 | } |
| 1614 | return nil |
| 1615 | } |
no test coverage detected