Skip to main content

save

Function save 

Source
pub fn save(issues_dir: &Path, filename: &str) -> Option<PathBuf>
Expand description

Copy <issues_dir>/<filename> into dir under a timestamped name, returning the backup path.

Returns None when the issue cannot be read or the copy cannot be written: a backup is best-effort, and the caller reports the path it gets rather than failing the write it was protecting.