Kare Morstol
d2064aeef3
Use '+' to append strings to NSUrls instead of '/' .
...
Because it looks much better and makes more sense.
2015-11-20 00:55:41 +01:00
Kare Morstol
cab35b4078
Add a trailing / to ‘main.tempdirectory’.
2015-10-18 23:44:22 +02:00
Kare Morstol
b447059e3e
Add ‘open’ functions for writing to files.
2015-10-16 03:30:44 +02:00
Kare Morstol
796af16d1a
Add 'open' functions for reading files.
2015-10-15 23:05:20 +02:00
Kare Morstol
a222c4d15a
Implement "NSURL / String" operator.
...
Overriding a standard operator for a completely different use case like this is not normally recommended, but I think it is warranted here. It's certainly a lot better than "URLByAppendingPathComponent".
2015-09-08 23:44:09 +02:00
Kare Morstol
8bec5cf499
Eviscerate pretty much everything.
...
Will be changing a lot of the API, and do not want to have to change all the unit test and the rest of the code for every single change.
2015-07-19 22:49:39 +02:00
Kare Morstol
a9dbdcf629
Update to Swift 2.0 .
...
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol
908a8ecaae
Revert "Fix compiler crash - make workdirectory a struct"
...
This reverts commit e8333f2922 .
2015-02-27 23:53:32 +01:00
Kare Morstol
9e2d44682f
Revert "Move workdirectory to NSFileManager extension."
...
This reverts commit f8f7c78de9 .
2015-02-27 23:52:56 +01:00
Kare Morstol
f8f7c78de9
Move workdirectory to NSFileManager extension.
...
To work around compiler crash in Xcode 6.3 beta 1 on public global
variables with default value. Wanted to move tempdirectory there too
but extensions can’t have stored properties.
Close #8 .
Close #9 (pull request from @beltex)
2015-02-14 00:34:52 +01:00
beltex
e8333f2922
Fix compiler crash - make workdirectory a struct
2015-02-13 12:33:15 -05:00
Kare Morstol
a1e26bfcc8
Tidy up / nitpick.
2014-12-09 18:07:04 +01:00
Kare Morstol
1f96ffa770
Enable "/" as file path concatenation operator.
...
Now you can do `let filepath = tempdirectory / "newfile.txt"`.
2014-12-02 02:06:21 +01:00
Kare Morstol
bf19e4241b
Add global variable "workdirectory".
2014-12-01 23:43:39 +01:00
Kare Morstol
fcd7eba2a4
Fix horrendous use of spaces for indentation.
2014-12-01 22:43:03 +01:00
Kare Morstol
b33bfb9a5f
Move "temporaryDirectory" to new file Files.swift and rename it "tempdirectory".
...
Because it could be useful in scripts too.
2014-11-25 20:38:32 +01:00