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:
parent
a672e97441
commit
bb8fb9652e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user