Show app directory at loading
This commit is contained in:
parent
2351a057b4
commit
e82c757f2b
1 changed files with 5 additions and 3 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Reference in a new issue