[][src]Function coreutils_core::backup::create_simple_backup

pub fn create_simple_backup(file: &Path, suffix: &str) -> Result<PathBuf, Error>

Creates a simple backup. Creates a backup of the form <file><suffix>. Overwrites any previous backup files with that same suffix.

Errors

If this function encounters any kind of I/O error, an error variant will be returned.