1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-03 21:41:02 +01:00

Change file protection level

This commit is contained in:
Justin Mazzocchi 2021-01-16 20:35:54 -08:00
parent a672e97441
commit bb8fb9652e
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C

View File

@ -19,7 +19,7 @@ extension FileManager {
if !fileExists(atPath: databaseDirectoryURL.path, isDirectory: &isDirectory) {
try createDirectory(at: databaseDirectoryURL,
withIntermediateDirectories: false,
attributes: [.protectionKey: FileProtectionType.complete])
attributes: [.protectionKey: FileProtectionType.completeUnlessOpen])
} else if !isDirectory.boolValue {
throw DatabaseDirectoryError.unexpectedFileExistsWithDBDirectoryName
}