Skip to main content

save

Function save 

Source
pub fn save(
    dir: &Path,
    lib: &Library,
    path: &str,
    content: &str,
    replace_built_in: bool,
) -> Result<Written, String>
Expand description

Save content as the page path in the user’s folder dir (replacing the user’s own page of that path). lib is the library the folder overlays: a built-in path is refused unless replace_built_in.