Use cross-platform ProcessInfo instance property

This commit is contained in:
László Kustra committed 2023-06-29 16:23:36 +02:00
1 parent 284a4ee1ac
commit 4057e3be07
1 file changed
+1 -1
+1 -1
View File
@@ -446,7 +446,7 @@ public struct DatabaseMigrator {
//
// So let's create a "regular" temporary database:
let tmpURL = URL(fileURLWithPath: NSTemporaryDirectory())
.appendingPathComponent(ProcessInfo().globallyUniqueString)
.appendingPathComponent(ProcessInfo.processInfo.globallyUniqueString)
defer {
try? FileManager().removeItem(at: tmpURL)
}