Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ final class LogRotation {
contents: nil,
attributes: [FileAttributeKey: Any]()
)
if #available(macOS 11.0, *) {
if #available(macOS 11.0, iOS 9.0, *) {
let resourceValues: [URLResourceKey: Any] = [
URLResourceKey.fileProtectionKey: URLFileProtection.complete,
URLResourceKey.fileProtectionKey: URLFileProtection.completeUntilFirstUserAuthentication,
URLResourceKey.isExcludedFromBackupKey: true
]
try (fileURL as NSURL).setResourceValues(resourceValues)
Expand Down
Loading