From 138ec84642ac18ef5a4a44bf8b995583b033abcf Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 3 Jul 2014 23:41:20 -0700 Subject: [PATCH] io.files.temp.macosx: Create the cache and temp directories every time. Fixes #1089. --- basis/io/files/temp/macosx/macosx.factor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basis/io/files/temp/macosx/macosx.factor b/basis/io/files/temp/macosx/macosx.factor index eb31b1e656..54123c9882 100644 --- a/basis/io/files/temp/macosx/macosx.factor +++ b/basis/io/files/temp/macosx/macosx.factor @@ -1,7 +1,7 @@ ! (c)2012 Joe Groff bsd license USING: alien.c-types alien.syntax cocoa.plists cocoa.runtime cocoa.types core-foundation.strings io.directories io.files -io.files.temp io.pathnames kernel memoize sequences system ; +io.files.temp io.pathnames kernel sequences system ; IN: io.files.temp.macosx -MEMO: (temp-directory) ( -- path ) +: (temp-directory) ( -- path ) NSTemporaryDirectory CF>string (make-factor-bundle-subdir) ; M: macosx temp-directory (temp-directory) ; -MEMO: (cache-directory) ( -- path ) +: (cache-directory) ( -- path ) NSCachesDirectory NSUserDomainMask 1 NSSearchPathForDirectoriesInDomains plist> (first-existing) (make-factor-bundle-subdir) ;