Home
last modified time | relevance | path

Searched refs:backup_path (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/security/asset/services/db_operator/src/
H A Ddatabase.rs97 pub(crate) backup_path: String,
150 let backup_path = fmt_backup_path(path.as_str()); in get_db() localVariable
152 …let mut db = Database { path, backup_path, handle: 0, db_lock: lock, db_name: db_name.to_string() … in get_db()
227 …let mut db = Database { path: path.clone(), backup_path: path, handle: 0, db_lock: lock, db_name }; in check_db_accessible()
298 if let Err(e) = fs::copy(&self.backup_path, &self.path) { in restore()
392 let backup_path = fmt_backup_path(&path); in delete() localVariable
397 if let Err(e) = fs::remove_file(backup_path) { in delete()
/ohos5.0/base/security/asset/services/core_service/src/common_event/
H A Dlistener.rs321 let backup_path = format!("{}{}", from_path, BACKUP_SUFFIX); in backup_de_db_if_accessible() localVariable
322 fs::copy(from_path, backup_path)?; in backup_de_db_if_accessible()
340 let backup_path = format!("{}{}", from_path, BACKUP_SUFFIX); in backup_ce_db_if_accessible() localVariable
341 fs::copy(from_path, backup_path)?; in backup_ce_db_if_accessible()
/ohos5.0/base/security/asset/services/db_operator/src/test/
H A Dtest_database.rs82 fs::copy(&db.path, &db.backup_path).unwrap(); in backup_db()