Skip to main content

write_backup

Function write_backup 

Source
pub fn write_backup(path: &Path) -> Result<PathBuf, CliError>
Expand description

Write a timestamped backup of path next to the original.

Backup name: {filename}.seshat-backup.{unix_timestamp_ms} Using millisecond precision avoids collisions when two patches happen within the same second.