(path string)
| 521 | } |
| 522 | |
| 523 | func removeAttributes(path string) error { |
| 524 | attrNames, err := xattr.List(path) |
| 525 | if err != nil { |
| 526 | return fmt.Errorf("failed to list attributes for '%s': %w", path, err) |
| 527 | } |
| 528 | |
| 529 | for _, attrName := range attrNames { |
| 530 | if err := xattr.Remove(path, attrName); err != nil { |
| 531 | return fmt.Errorf("failed to remove attribute '%s' from '%s': %w", attrName, path, err) |
| 532 | } |
| 533 | } |
| 534 | return nil |
| 535 | } |
| 536 | |
| 537 | func logFailure(message string, args ...any) { |
| 538 | spinner.StopFailMessage(fmt.Sprintf("\n"+message, args...)) |
no test coverage detected