backup_file_path: Find file in backup

View source: R/backups.R

backup_file_pathR Documentation

Find file in backup

Description

Return the path for a specific file in the backup

Usage

backup_file_path(backup, file, domain = "")

Arguments

backup

An ios_backup object (or something that can be passed to get_backup).

file

The relative name of the file you want to find.

domain

The domain in which to search for the file.

Details

This function translates the human-readable relative file paths and domains into the fileID necessary to extract the file. If present, the manifest data for the backup is used; if not present, the path and domain are hashed as in older iOS versions.

Value

For each input, will return a character value with the true path to the file on disk or NA if the location cannot be determined (no entry in the manifest)

Examples

## Not run: 
backup <- get_backup()
backup_file_path(backup, file="Library/AddressBook/AddressBook.sqlitedb", 
  domain="HomeDomain")

## End(Not run)

MrFlick/myphone documentation built on Sept. 16, 2022, 12:07 p.m.