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.
2 parents 55f0f1b + 5ad82b4 commit 9248fa4Copy full SHA for 9248fa4
xcode/App-Mac/Functions.swift
@@ -8,9 +8,15 @@ 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 = "Cannot read the specified path; please choose a different one."
14
+ alert.runModal()
15
+ return false
16
+ }
17
guard FileManager.default.isWritableFile(atPath: url.path) else {
18
let alert = NSAlert()
- alert.messageText = "Can not write to path. Choose a different path."
19
+ alert.messageText = "Cannot write to the specified path; please choose a different one."
20
alert.runModal()
21
return false
22
0 commit comments