Skip to content

Commit

Permalink
Fix get-default-temporary-directory on lispworks.
Browse files Browse the repository at this point in the history
probe-file there returns something unpalatable.

Fixes #26
  • Loading branch information
stassats committed Apr 14, 2018
1 parent 17f2e21 commit 74be0c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions temporary-files.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@
#-win32
(defun get-default-temporary-directory ()
(or (directory-from-environment "TMPDIR")
#-clisp
(probe-file #P"/tmp/")
#+clisp
(and (ext:probe-directory #P"/tmp/")
(and #-clisp (probe-file #P"/tmp/")
#+clisp (ext:probe-directory #P"/tmp/")
#P"/tmp/")))

(handler-case
Expand Down

0 comments on commit 74be0c9

Please sign in to comment.