Skip to main content

requires_write_through

Function requires_write_through 

Source
pub fn requires_write_through(target: &Path) -> bool
Expand description

Decide whether target requires the write-through path. Returns true for POSIX symlinks (is_symlink()) and for any non-regular existing file (FIFOs, devices, Windows reparse points). Missing targets return false — the caller dispatches to the atomic-rename path, which creates them.