File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
examples/llama.swiftui/llama.swiftui/UI Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ struct DownloadButton: View {
5353 print ( " Security Error: Temporary file path is outside expected directory " )
5454 return
5555 }
56-
56+
5757 let docsDir = FileManager . default. urls ( for: . documentDirectory, in: . userDomainMask) [ 0 ]
5858 guard fileURL. path. hasPrefix ( docsDir. path) else {
5959 print ( " Security Error: Destination path is outside documents directory " )
6060 return
6161 }
62-
62+
6363 try FileManager . default. copyItem ( at: temporaryURL, to: fileURL)
6464 print ( " Writing to \( filename) completed " )
6565
Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ struct InputButton: View {
5757 print ( " Security Error: Temporary file path is outside expected directory " )
5858 return
5959 }
60-
60+
6161 let docsDir = FileManager . default. urls ( for: . documentDirectory, in: . userDomainMask) [ 0 ]
6262 guard fileURL. path. hasPrefix ( docsDir. path) else {
6363 print ( " Security Error: Destination path is outside documents directory " )
6464 return
6565 }
66-
66+
6767 try FileManager . default. copyItem ( at: temporaryURL, to: fileURL)
6868 print ( " Writing to \( filename) completed " )
6969
You can’t perform that action at this time.
0 commit comments