Retrieves the data protection level of a file.Syntax:
iphoneFileDataProtection <filename>
Examples:
if iphoneFileDataProtection() is "none" then iphoneSetFileDataProtection tFile, "complete" end if
Use the iphoneFileDataProtection function to query the current level of protection of a particular file set using the command iphoneSetFileDataProtection.
Parameters:
- filename (string): A string containing the path to the file.
- Returns (enum):
- - none: - complete: - complete unless open: (iOS 5 and later only)- complete until first user authentication: (iOS 5 and later only)
- Description:Use the iphoneFileDataProtection function to query the current levelof protection of a particular file set using the commandiphoneSetFileDataProtection.
See also: iphoneSetDoNotBackupFile (command),iphoneFileDataProtection (function),iphoneDoNotBackupFile (function),protectedDataWillBecomeUnavailable (message),protectedDataDidBecomeAvailable (message),