Skip to main content

write_named

Function write_named 

Source
pub fn write_named(what: &str, name: &str, bytes: &[u8]) -> Result<PathBuf>
Expand description

bytes in a file called name (a part’s own name, which tells a viewer its type) inside a fresh directory of ours: the directory is created new (never one someone put there first) with mode 0700, the file inside with 0600. discard takes both away again.