Skip to main content

write

Function write 

Source
pub fn write(root: &Path, body: &str, force: bool) -> Result<PathBuf>
Expand description

Write drep.toml under root.

Refuses to overwrite an existing file unless force. The error names the path and points at --force so the user does not have to read code to learn how to recover.