Skip to main content

atomic_write

Function atomic_write 

Source
pub async fn atomic_write<R>(
    target: impl AsRef<Path>,
    reader: R,
) -> Result<(), FsError>
where R: AsyncRead + Unpin,
Expand description

Stream reader into a temporary sibling file and atomically rename it over target.