Skip to main content

backup_library

Function backup_library 

Source
pub fn backup_library(root: &Path) -> Result<Option<PathBuf>>
Expand description

Library::backup_metadata for the library at root, without opening it. It only reads metadata.json and writes into backup/, so the app runs it on a background thread while the library stays in use: a metadata.json caught mid-write doesn’t parse and is skipped.