]> git.eshelyaron.com Git - emacs.git/commitdiff
(recover-session): Make directories as necessary
authorGerd Moellmann <gerd@gnu.org>
Tue, 2 May 2000 20:09:21 +0000 (20:09 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 2 May 2000 20:09:21 +0000 (20:09 +0000)
if they don't exist yet.

lisp/files.el

index 039f7fc5a2238c4ae5d2c112c9e8a1c5c0457701..f9fbc76309753cbab099b39ad72c5dd902f6148c 100644 (file)
@@ -3011,6 +3011,9 @@ Then you'll be asked about a number of files to recover."
   (interactive)
   (if (null auto-save-list-file-prefix)
       (error "You set `auto-save-list-file-prefix' to disable making session files"))
+  (let ((dir (file-name-directory auto-save-list-file-prefix)))
+    (unless (file-directory-p dir)
+      (make-directory dir t)))
   (let ((ls-lisp-support-shell-wildcards t))
     (dired (concat auto-save-list-file-prefix "*")
           (concat dired-listing-switches "t")))