Enable "/" as file path concatenation operator.

Now you can do `let filepath = tempdirectory / "newfile.txt"`.
This commit is contained in:
Kare Morstol
2014-12-02 02:06:21 +01:00
parent 6cc240a138
commit 1f96ffa770
3 changed files with 14 additions and 2 deletions
@@ -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 )