Show app directory at loading

This commit is contained in:
Marcus Kammer 2024-06-17 18:04:09 +02:00
parent 2351a057b4
commit e82c757f2b

View file

@ -21,9 +21,7 @@ application."
(defun ensure-data-dir () (defun ensure-data-dir ()
"Ensure the data directory exists, create it if necessary, and return its "Ensure the data directory exists, create it if necessary, and return its
path." path."
(let ((data-dir (data-dir))) (ensure-directories-exist (data-dir)))
(ensure-directories-exist (data-dir))
data-dir))
(defun ensure-file-exist (pathname) (defun ensure-file-exist (pathname)
"Ensure that a file specified by PATHNAME exists, create it if it doesn't." "Ensure that a file specified by PATHNAME exists, create it if it doesn't."
@ -72,3 +70,7 @@ within the data directory."
(defun public-dir () (defun public-dir ()
(uiop:merge-pathnames* #P"public/" (app-dir))) (uiop:merge-pathnames* #P"public/" (app-dir)))
(ensure-directories-exist (public-dir))
(format t "App Data Directory: ~a~%" (app-dir))