We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e87fad commit 15038eaCopy full SHA for 15038ea
1 file changed
PVLibrary/Sources/PVLibrary/Database/Realm Database/RomDatabase.swift
@@ -40,13 +40,13 @@ public final class RealmConfiguration {
40
guard !PVAppGroupId.isEmpty, let container = RealmConfiguration.appGroupContainer else {
41
return false
42
}
43
- let path = container.path
44
let fm = FileManager.default
45
- if fm.isReadableFile(atPath: path) {
46
- return true
47
- } else {
+ var isDir: ObjCBool = false
+ let path = container.path
+ guard fm.fileExists(atPath: path, isDirectory: &isDir), isDir.boolValue else {
48
49
+ return true
50
#endif
51
52
0 commit comments