diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/emms-cache.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emms-cache.el b/lisp/emms-cache.el index 4741cbf..4f96898 100644 --- a/lisp/emms-cache.el +++ b/lisp/emms-cache.el @@ -140,6 +140,8 @@ This is used to cache over emacs sessions.") emms-cache-db) (when (fboundp 'set-buffer-file-coding-system) (set-buffer-file-coding-system emms-cache-file-coding-system)) + (unless (file-directory-p (file-name-directory emms-cache-file)) + (make-directory (file-name-directory emms-cache-file))) (write-region (point-min) (point-max) emms-cache-file) (kill-buffer (current-buffer)) (message "Saving emms track cache...done") |