Skip to main content

write_new

Function write_new 

Source
pub fn write_new(name: &Path, content: &[u8]) -> Result<()>
Expand description

Writes a file that is made for it: what had the name goes first, and the file is made only if nothing has the name then. So a link of that name is not written through (to make a file anew is never to follow a link), nor is a FIFO there waited at.