Enable "/" as file path concatenation operator.
Now you can do `let filepath = tempdirectory / "newfile.txt"`.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import SwiftShell
|
||||
|
||||
let filepath = tempdirectory + "/newfile.txt"
|
||||
let filepath = tempdirectory / "newfile.txt"
|
||||
|
||||
// File doesn't exist. Create it.
|
||||
let file1 = open(forWriting: filepath )
|
||||
|
||||
Reference in New Issue
Block a user