Skip to main content

replace_wiping

Function replace_wiping 

Source
pub fn replace_wiping(path: &Path, bytes: &[u8]) -> Result<()>
Expand description

bytes in place of path’s content, what it held overwritten where the filesystem lets it be (docs/client.md, “What a disk keeps”): Prepared, Prepared::place and Placed::finish at once, for a file no other part of Sioul reads meanwhile but through read_whole. A file that readers take a lock for is replaced in those three steps, the place alone under that lock (draftcopies: the sharing’s exchange lock).