mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-26 02:01:00 +00:00
Change file protection level
This commit is contained in:
parent
a672e97441
commit
bb8fb9652e
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ extension FileManager {
|
||||||
if !fileExists(atPath: databaseDirectoryURL.path, isDirectory: &isDirectory) {
|
if !fileExists(atPath: databaseDirectoryURL.path, isDirectory: &isDirectory) {
|
||||||
try createDirectory(at: databaseDirectoryURL,
|
try createDirectory(at: databaseDirectoryURL,
|
||||||
withIntermediateDirectories: false,
|
withIntermediateDirectories: false,
|
||||||
attributes: [.protectionKey: FileProtectionType.complete])
|
attributes: [.protectionKey: FileProtectionType.completeUnlessOpen])
|
||||||
} else if !isDirectory.boolValue {
|
} else if !isDirectory.boolValue {
|
||||||
throw DatabaseDirectoryError.unexpectedFileExistsWithDBDirectoryName
|
throw DatabaseDirectoryError.unexpectedFileExistsWithDBDirectoryName
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue