(updatePath string)
| 1529 | } |
| 1530 | |
| 1531 | func stubExtensionUpdate(updatePath string) error { |
| 1532 | if _, err := os.Stat(updatePath); err == nil { |
| 1533 | return fmt.Errorf("failed to stub extension update directory: %s already exists", updatePath) |
| 1534 | } |
| 1535 | if err := os.MkdirAll(updatePath, 0755); err != nil { |
| 1536 | return fmt.Errorf("failed to stub extension update directory: %w", err) |
| 1537 | } |
| 1538 | return nil |
| 1539 | } |
no test coverage detected