MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / print_failed_deletions

Function print_failed_deletions

atomic-cli/src/commands/remove.rs:490–500  ·  view source on GitHub ↗

The paths whose bytes are still in the working copy because the deletion could not be performed, shared by both removal paths. A removal that could not delete reports that, and only that: counting such a path as removed is what let an unlink failure read as a success.

(failures: &[String])

Source from the content-addressed store, hash-verified

488/// A removal that could not delete reports that, and only that: counting such a
489/// path as removed is what let an unlink failure read as a success.
490pub(crate) fn print_failed_deletions(failures: &[String]) {
491 for failure in failures {
492 print_warning(&format!("Failed to delete {failure}"));
493 }
494 if !failures.is_empty() {
495 print_warning(&format!(
496 "{} with errors",
497 format_count(failures.len(), "path")
498 ));
499 }
500}
501
502/// The sentence both removal paths end on when a deletion could not be
503/// performed: the bytes survive, so the untrack is not complete.

Callers 2

runMethod · 0.85
removeFunction · 0.85

Calls 2

print_warningFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected