Skip to main content

backup_prefix

Function backup_prefix 

Source
pub fn backup_prefix(source: &Path) -> Result<String>
Expand description

Generate a backup prefix that uniquely identifies a source file by its canonical path.

Format: {filename}_{path_hash}_ where path_hash is 16 hex characters derived from hashing the full canonical path. This ensures files with the same name at different locations get isolated backup histories.