From ce8eb6f004c6401bb13f6d377cae2b83d5b4a2bd Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Mon, 1 Dec 2014 20:16:48 +0100 Subject: [PATCH] Make URL to "tempdirectory" read only. --- SwiftShell/Files.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftShell/Files.swift b/SwiftShell/Files.swift index 8491643..1b69a46 100644 --- a/SwiftShell/Files.swift +++ b/SwiftShell/Files.swift @@ -13,7 +13,7 @@ import Foundation The tempdirectory is unique each time a script is run and is created the first time it is used. It lies in the user's temporary directory and will be automatically deleted at some point. */ -public var tempdirectory: NSURL = { +public let tempdirectory: NSURL = { var error: NSError? let tempdirectory = NSURL(fileURLWithPath: NSTemporaryDirectory().stringByAppendingPathComponent("SwiftShell-" + NSProcessInfo.processInfo().globallyUniqueString), isDirectory: true)! NSFileManager.defaultManager()