1
0
Fork 0

- fixed 'filesystem-utils:temporary-directory'.

This commit is contained in:
cage 2024-02-04 15:39:33 +01:00
parent e458dd8eb9
commit d083ef7bf2
1 changed files with 11 additions and 11 deletions

View File

@ -419,17 +419,17 @@
(defparameter *temporary-directories-created* ())
(defun temporary-directory (&optional (temp-parent-directory nil))
(let ((tmpdir (or temp-parent-directory
(os-utils:default-temp-dir)))
(directory-path (if tmpdir
(nix:mkdtemp (format nil "~a~a"
tmpdir
config:+program-name+))
(nix:mkdtemp (format nil "~atmp~a"
*directory-sep*
config:+program-name+)))))
(push directory-path *temporary-directories-created*)
directory-path)))
(let* ((tmpdir (or temp-parent-directory
(os-utils:default-temp-dir)))
(directory-path (if tmpdir
(nix:mkdtemp (format nil "~a~a"
tmpdir
config:+program-name+))
(nix:mkdtemp (format nil "~atmp~a"
*directory-sep*
config:+program-name+)))))
(push directory-path *temporary-directories-created*)
directory-path))
(cffi:defcfun (ffi-fnmatch "fnmatch")
:int