Skip to main content

discard_unusable_partial

Function discard_unusable_partial 

Source
fn discard_unusable_partial(partial: &Path, failure: Error) -> Error
Expand description

Decide what a failed partial deserves, and say so in the log.

Only a verdict on the BYTES earns a deletion: an io error says nothing about them, and a partial may predate this run, so deleting on one would throw away a correct multi-gigabyte file.