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 2700906 commit 0ec57bdCopy full SHA for 0ec57bd
xcode/App-Mac/Functions.swift
@@ -8,6 +8,12 @@ func getSaveLocationURL() -> URL {
8
}
9
10
func setSaveLocationURL(url: URL) -> Bool {
11
+ guard FileManager.default.isReadableFile(atPath: url.path) else {
12
+ let alert = NSAlert()
13
+ alert.messageText = "Can not read to path. Choose a different path."
14
+ alert.runModal()
15
+ return false
16
+ }
17
guard FileManager.default.isWritableFile(atPath: url.path) else {
18
let alert = NSAlert()
19
alert.messageText = "Can not write to path. Choose a different path."
0 commit comments