create cache directory when it's not exist

This commit is contained in:
zedhugh committed 2025-05-19 01:10:37 +08:00
1 parent d50695af9c
commit d8aca72c83
1 file changed
+3 -1
+3 -1
View File
@@ -55,7 +55,9 @@ If freezing sometimes, decrease it. If stuttering, increase it.")
"Root directory of Creature.")
(defconst creature/cache-dir
(expand-file-name ".cache" creature/config-dir)
(let ((dir (expand-file-name ".cache" creature/config-dir)))
(unless (file-exists-p dir) (mkdir dir))
dir)
"Cache directory of Creature.")
(add-to-list 'load-path (expand-file-name "lisp" creature/config-dir) t)