Fixes crash when importing non-existent games
This commit is contained in:
parent
73af189100
commit
509a1af74c
@ -167,6 +167,8 @@ extension DatabaseManager
|
|||||||
|
|
||||||
for url in urls
|
for url in urls
|
||||||
{
|
{
|
||||||
|
guard FileManager.default.fileExists(atPath: url.path) else { continue }
|
||||||
|
|
||||||
let identifier = FileHash.sha1HashOfFile(atPath: url.path) as String
|
let identifier = FileHash.sha1HashOfFile(atPath: url.path) as String
|
||||||
|
|
||||||
let filename = identifier + "." + url.pathExtension
|
let filename = identifier + "." + url.pathExtension
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user