Skip to main content

quarantine

Function quarantine 

Source
pub fn quarantine(path: &Path) -> Result<PathBuf>
Expand description

Rename a corrupt file to a sibling <name>.corrupt-<pid>-<epoch-millis>-<n> and return the new path. The low-level primitive beneath read_json; it returns a bare io::Result and leaves the original path free for a fresh default to take.