Skip to main content

convert_file

Function convert_file 

Source
pub fn convert_file(path: &Path, ctx: &ConvertCtx) -> FileRecord
Expand description

Detect + transcode + (unless dry-run) backup + atomic write.

Byte-identical outcomes are recorded as unchanged and never touch the filesystem, so unchanged files keep their mtime. Every failure is contained in this one record (per-file error isolation).