|
@@ -102,7 +102,7 @@ import Foundation
|
|
|
|
|
|
|
|
// Ensure appropriate protection level
|
|
// Ensure appropriate protection level
|
|
|
try FileManager.default.setAttributes(
|
|
try FileManager.default.setAttributes(
|
|
|
- [.protectionKey: FileProtectionType.completeUntilFirstUserAuthentication],
|
|
|
|
|
|
|
+ [.protectionKey: FileProtectionType.none],
|
|
|
ofItemAtPath: storageURL.path
|
|
ofItemAtPath: storageURL.path
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -146,7 +146,7 @@ enum FileProtectionFixer {
|
|
|
|
|
|
|
|
do {
|
|
do {
|
|
|
try fileManager.setAttributes(
|
|
try fileManager.setAttributes(
|
|
|
- [.protectionKey: FileProtectionType.completeUntilFirstUserAuthentication],
|
|
|
|
|
|
|
+ [.protectionKey: FileProtectionType.none],
|
|
|
ofItemAtPath: fileURL.path
|
|
ofItemAtPath: fileURL.path
|
|
|
)
|
|
)
|
|
|
debug(.storage, "✅ Updated protection for \(fileName)")
|
|
debug(.storage, "✅ Updated protection for \(fileName)")
|