pub fn read(path: &Path) -> Result<Backup, StoreError>Expand description
Reads a backup from an ordinary local file, refusing blocking special files. A backup with credentials also requires a private, non-symlink source. The opened file’s identity and permissions are checked, and changes during reading are refused. Reading cannot grow past its inspected length.