Skip to main content

create_backup

Function create_backup 

Source
pub fn create_backup(path: &Path, extension: &str) -> Result<()>
Expand description

Create a backup copy of a file by appending the given extension. e.g., create_backup(“file.py”, “.bak”) creates “file.py.bak”